issue-executor
Use this skill to start work on a GitHub issue. It synthesizes all relevant context (specs, retrospective, issue details) using the Gemini CLI to generate a step-by-step implementation plan, then creates a feature branch to begin work. Triggers include "start work on issue
What this skill does
# Issue Executor ## Purpose To kickstart the development workflow for a single GitHub issue by generating a comprehensive, context-aware implementation plan. This skill leverages the Gemini CLI to synthesize issue details, relevant specifications, and historical learnings from the project retrospective into a clear, actionable plan. It then creates an isolated feature branch, setting the stage for focused, spec-driven development. ## When to Use Use this skill in the following situations: - Starting work on a planned GitHub issue from the current sprint. - Beginning a work session and wanting a synthesized plan before coding. - Needing to load and understand all context for an issue efficiently. ## Prerequisites - GitHub repository with issues created (via sprint-planner skill). - Git working directory is clean (no uncommitted changes). - Currently on the `main` branch. - `gh` CLI tool installed and authenticated. - `jq` tool installed for JSON parsing. - `gemini` CLI tool installed and authenticated. - Project has a `docs/` structure with specs and a `RETROSPECTIVE.md`. ## Core Principles ### Context is King Instead of just viewing files, the skill synthesizes all relevant context into a coherent plan: - **Issue details**: Requirements and acceptance criteria. - **Spec files**: All specifications referenced in the issue. - **Retrospective**: Learnings from past work to avoid repeating mistakes. ### Isolation All work happens on a dedicated feature branch to: - Protect the `main` branch from work-in-progress. - Enable a clean Pull Request workflow. - Allow abandoning work without impacting the main codebase. ### Atomic Work Each issue represents a single, well-defined task that can be completed and reviewed as a unit. ## Workflow ### Step 1: Identify the Issue Determine which issue to work on. The user specifies the issue number (e.g., #45). ### Step 2: Run the Helper Script Execute the `work-on-issue.sh` script with the issue number: ```bash bash scripts/work-on-issue.sh 45 ``` ### Step 3: Understand What the Script Does The helper script automates these critical setup steps: 1. **Validates Prerequisites**: Checks for `jq`, a clean git status, and being on the `main` branch. 2. **Fetches Issue Details**: Retrieves the issue title and body from GitHub. 3. **Finds Context Files**: Locates all referenced spec files (`.md`) in `docs/specs/` or `docs/changes/` and identifies `RETROSPECTIVE.md`. 4. **Synthesizes Implementation Plan**: Constructs a detailed prompt with the issue details and file context (`@file` syntax) and calls the `gemini` CLI. It asks Gemini to produce a step-by-step implementation plan based on all provided information. 5. **Displays the Plan**: Prints the generated plan from Gemini to the console. 6. **Creates Feature Branch**: Generates a conventional branch name (e.g., `feat/45-restructure-doc-indexer`) and checks it out. 7. **Confirms Readiness**: Displays a success message confirming that the branch is ready and the plan has been generated. ### Step 4: Review the Implementation Plan After the script completes, carefully review the implementation plan generated by Gemini. This plan is your starting guide for the implementation, synthesized from all available project context. ### Step 5: Begin Implementation With the plan and feature branch ready: 1. Follow the steps outlined in the generated plan. 2. Write code that meets the acceptance criteria. 3. Test your changes thoroughly. 4. Commit work incrementally. 5. Push to the remote branch when ready to create a Pull Request. ## Error Handling ### Working Directory Not Clean / Not on Main Branch **Symptom**: Script reports uncommitted changes or that you are not on the `main` branch. **Solution**: Commit, stash, or discard your changes. Switch back to the `main` branch before re-running the script. ### Missing `jq` or `gemini` Tool **Symptom**: Script reports that `jq` or `gemini` is not installed. **Solution**: Install the required tool. For `jq`, use `sudo apt install jq` or `brew install jq`. For `gemini`, follow its official installation instructions. ### Gemini CLI Issues **Symptom**: The script fails while generating the implementation plan, showing an error from the `gemini` command. **Solution**: - Ensure the `gemini` CLI is installed correctly and is in your system's PATH. - Verify your authentication status with `gemini auth`. - Check for Gemini API outages or connectivity issues. - Examine the prompt being sent to Gemini for any syntax errors. ### Spec File Not Found **Symptom**: The script runs, but the plan doesn't seem to include context from a spec file you expected. **Solution**: - Ensure the issue body explicitly references the spec file with its full path (e.g., `docs/specs/my-spec.md`). The script only includes files that are directly mentioned. - Verify the referenced file path is correct and the file exists. ## Notes - The script's primary output is now an **actionable implementation plan**, not just a list of files. - The quality of the plan depends on the quality of the input (issue description, specs, retrospective). - The generated plan is a guide; use your own expertise to adapt and improve it as you work. - Branch naming follows the convention: `feat/ISSUE_NUMBER-kebab-case-title`.
Related in AI Agents
skill-development
IncludedComprehensive meta-skill for creating, managing, validating, auditing, and distributing Claude Code skills and slash commands (unified in v2.1.3+). Provides skill templates, creation workflows, validation patterns, audit checklists, naming conventions, YAML frontmatter guidance, progressive disclosure examples, and best practices lookup. Use when creating new skills, validating existing skills, auditing skill quality, understanding skill architecture, needing skill templates, learning about YAML frontmatter requirements, progressive disclosure patterns, tool restrictions (allowed-tools), skill composition, skill naming conventions, troubleshooting skill activation issues, creating custom slash commands, configuring command frontmatter, using command arguments ($ARGUMENTS, $1, $2), bash execution in commands, file references in commands, command namespacing, plugin commands, MCP slash commands, Skill tool configuration, or deciding between skills vs slash commands. Delegates to docs-management skill for official documentation.
reprompter
IncludedTransform messy prompts into well-structured, effective prompts — single or multi-agent. Use when: "reprompt", "reprompt this", "clean up this prompt", "structure my prompt", rough text needing XML tags and best practices, "reprompter teams", "repromptception", "run with quality", "smart run", "smart agents", multi-agent tasks, audits, parallel work, anything going to agent teams. Don't use when: simple Q&A, pure chat, immediate execution-only tasks. See "Don't Use When" section for details. Outputs: Structured XML/Markdown prompt, quality score (before/after), optional team brief + per-agent sub-prompts, agent team output files. Success criteria: Single mode quality score ≥ 7/10; Repromptception per-agent prompt quality score 8+/10; all required sections present, actionable and specific.
adaptive-compaction
IncludedAdaptive add-on policy and recovery layer that decides WHEN to compact, prune, snapshot, or fork -- replacing fixed-percent auto-compaction across Claude Code, Codex, and MCP-capable hosts. Trigger on auto-compact timing or damage: "when should I compact", "is it safe to compact now or start a fresh session", "auto-compact fires too early/mid-task", "switching to an unrelated task but the window still has space", "context rot", "answers get worse the longer the session runs", "the agent forgot the plan or my decisions after it summarized", "add a layer on top that manages context without changing the agent", raising autoCompactWindow to give the policy room, or installing/tuning a cross-tool compaction policy or PreCompact hook -- even when "compaction" is never said but the problem is context-window pressure or post-summarization memory loss. Do NOT use to summarize a conversation, build RAG, write a summarization prompt (decides WHEN not HOW), or answer max-context-length trivia.
agent-skill-creator
IncludedCreate cross-platform agent skills from workflow descriptions. Activates when users ask to create an agent, automate a repetitive workflow, create a custom skill, or need advanced agent creation. Triggers on phrases like create agent for, automate workflow, create skill for, every day I have to, daily I need to, turn process into agent, need to automate, create a cross-platform skill, validate this skill, export this skill, migrate this skill. Supports single skills, multi-agent suites, transcript processing, template-based creation, interactive configuration, cross-platform export, and spec validation.
llm-wiki
IncludedUse when building or maintaining a persistent personal knowledge base (second brain) in Obsidian where an LLM incrementally ingests sources, updates entity/concept pages, maintains cross-references, and keeps a synthesis current. Triggers include "second brain", "Obsidian wiki", "personal knowledge management", "ingest this paper/article/book", "build a research wiki", "compound knowledge", "Memex", or whenever the user wants knowledge to accumulate across sessions instead of being re-derived by RAG on every query.
skill-master
IncludedAgent Skills authoring, evaluation, and optimization. Create, edit, validate, benchmark, and improve skills following the agentskills.io specification. Use when designing SKILL.md files, structuring skill folders (references, scripts, assets), ingesting external documentation into skills, running trigger evals, benchmarking skill quality, optimizing descriptions, or performing blind A/B comparisons. Keywords: agentskills.io, SKILL.md, skill authoring, eval, benchmark, trigger optimization.