# Frontend Pane Lifecycle

> Frontend Pane Lifecycle is an Agent Skill for development published in the fossasia/visdom repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Build and debug pane lifecycle behavior in the React frontend. Use when adding pane actions, layout behavior, rendering updates, or pane-level interactions.

- Skill name: `frontend-pane-lifecycle`
- Category: [Development](https://www.openparable.com/skill/development/1)
- Source: https://github.com/fossasia/visdom/blob/HEAD/.agents/skills/frontend-pane-lifecycle/SKILL.md
- Repository: fossasia/visdom (10,264 GitHub stars when collected)

## SKILL.md

# Skill: Frontend Pane Lifecycle

## When to Use

Use this skill when changing pane rendering, pane actions, or lifecycle events.

## Core Workflow

1. Trace pane flow in `js/main.js` from incoming command to rendered pane.
2. Update pane components in `js/panes/` with existing memo/ref patterns.
3. Keep layout and focus behavior compatible with current grid logic.
4. Ensure topbar and modal interactions remain coherent with pane state.
5. Verify close/save/reset behavior and content refresh semantics.

## Guardrails

- Preserve `React.memo` and render-coalescing assumptions.
- Do not break pane IDs, titles, or layout item contracts.
- Keep compatibility with existing pane types and settings registration.

## Documentation

- [Skill reference](references/REFERENCE.md)
- `js/main.js`
- `js/panes/`
- `js/settings.js`
- `js/topbar/`
- `AGENTS.md`
- `CONTRIBUTING.md`

## Assets

- See `assets/README.md` and store templates/resources in `assets/`.

## Tests

- Follow the default flow in `references/TESTS.md`.

---

Source: https://www.openparable.com/skill/development/frontend-pane-lifecycle (OpenParable). Cite the canonical URL above.
