--- name: commit-feature description: Commits feature changes with the project convention and updates Notion — feature record (Estado → ✅ Listo, Commit) and project page (Último punto de guardado). Use after the visual checkpoint confirms the feature is correct. metadata: category: Handoff --- # Skill: Commit Feature Commits the current feature and updates its Notion state. Runs after the user has visually confirmed the feature. ## When to use - After `/build-feature` visual checkpoint passes - Standalone, when wrapping up a feature built outside the `/build-feature` flow ## Prerequisites Inputs needed: - **`projectPath`** — repo root - **`screenName`** — used in commit message - **`featureName`** — feature record to update in Notion - **`notionPageUrl`** — project page with the Features database If any are missing, ask the user. **What to stage:** by default stages everything (`git add .`). If the user specifies a folder or file list, stage only those paths instead. ## Steps ### 1. Commit (delegate to haiku) ``` Agent({ model: "haiku", prompt: ` In {projectPath}: 1. Stage changes: - If paths provided: git add {paths} - Otherwise: git add . 2. Commit with message: "{screenName} lista para revisar" Include co-author line: Co-Authored-By: Claude Report the commit hash when done. ` }) ``` ### 2. Update Notion (delegate to haiku) In the Features database on `{notionPageUrl}`, update the record for `{featureName}`: - **Estado** → `✅ Listo` - **Commit** → commit message In the same project page: - **Último punto de guardado** (inside Contexto técnico) → commit message ### 3. Report back Share the commit hash with the user and confirm Notion was updated.