agentleFS
bbvch-aibbvch-ai/aihub-core/.claude/skills/plan-issue/SKILL.md

plan-issue

Skill16 starsChanged 3 days agoApache-2.0View on GitHub

Fetch a GitHub issue from bbvch-ai/aihub-core and create an implementation plan using monorepo scope analysis, ADR checks, and scaffold skill mapping. Use when user says 'plan this issue', 'how should I implement issue #X', 'plan implementation', 'break down this issue', 'fetch issue and plan', 'what needs to change for #X', or 'implementation strategy for issue'. Takes an issue number as argument. Do NOT use for directly implementing code (use plan mode), PR feedback (use /implement-feedback-from-pr), or code review (use /review-diff).

We split this skill into the rules it gives an agent

10 rules. 0 are common, 6 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the gh CLI (there is no GitHub MCP server) to gather structured issue data:

    line 13
  2. Very specific:

    Read {scope}/CLAUDE.md to understand its architecture and patterns

    line 51
  3. Very specific:

    Search for related code with Grep and Glob

    line 52
  4. Distinctive:

    Read key files that will need modification

    line 53
  5. Distinctive:

    Read any ADR that covers related technology choices.

    line 62
  6. Distinctive:

    Check if scaffold skills exist for the type of work needed:

    line 67
  7. Distinctive:

    Every step must reference concrete files from the codebase, not placeholders

    line 96
  8. Distinctive:

    Follow existing patterns — read the scope's CLAUDE.md before proposing new abstractions

    line 97
  9. Very specific:

    If packages/core is modified, list all downstream scopes that import from it

    line 99
  10. Distinctive:

    All affected scopes identified with their CLAUDE.md consulted

    line 114

“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Plan Issue - GitHub Issue to Implementation Plan

Fetch issue $ARGUMENTS from bbvch-ai/aihub-core and produce a scoped implementation plan.

Step 1: Fetch the Issue

Use the gh CLI (there is no GitHub MCP server) to gather structured issue data:

gh issue view $ISSUE_NUMBER -R bbvch-ai/aihub-core --json title,body,author,assignees,labels,milestone,comments
gh api repos/bbvch-ai/aihub-core/issues/$ISSUE_NUMBER/sub_issues
gh api repos/bbvch-ai/aihub-core/issues/$ISSUE_NUMBER/dependencies/blocked_by

Comments hold clarifications and decisions; sub-issues hold the task breakdown if present.

Optionally check the project board for priority and status context:

gh project item-list 13 --owner bbvch-ai --format json | jq '.items[] | select(.content.number == $ISSUE_NUMBER)'

Extract from the issue: Goal (what needs to be achieved), Constraints (requirements or limitations), Context (related issues, PRs, or decisions).

Step 2: Identify Affected Scopes

Map the issue requirements to monorepo scopes:

ScopeResponsibility
packages/coreShared library (events, entities, NATS, auth, config)
packages/apiREST API + WebSocket gateway (FastAPI controllers, services)
packages/agentAI agent definitions and workflows (custom workflow engine)
packages/pipelineData ingestion pipelines (Dagster assets, resources)
packages/processBusiness process orchestration (agent + human + program steps)
packages/botCollaboration platform integrations (MS Teams, Slack)
packages/webFrontend admin UI (Nuxt 3, Vue 3, PrimeVue)
packages/sysadmin-apiSysadmin-gated tenant lifecycle API (FastAPI)
packages/sysadmin-webSysadmin UI (Nuxt layer extending packages/web)
packages/backupBackup/restore service (independent Dagster instance)

For each affected scope:

  1. Read {scope}/CLAUDE.md to understand its architecture and patterns
  2. Search for related code with Grep and Glob
  3. Read key files that will need modification
  4. Note existing patterns the implementation should follow

Step 3: Check Existing ADRs

ls docs/arc42/decisions/

Read any ADR that covers related technology choices. Flag if the implementation approach may need a new ADR (new dependency, new framework, fundamental pattern change).

Step 4: Identify Relevant Skills

Check if scaffold skills exist for the type of work needed:

  • New agent → /scaffold-agent
  • New pipeline → /scaffold-pipeline
  • New API endpoint → /scaffold-api-endpoint + /scaffold-api-service + /scaffold-api-repository
  • New frontend page → /scaffold-frontend-page + /scaffold-composable
  • New bot handler → /scaffold-bot-handler
  • New event type → /nats-events

Reference these in the plan so the implementer can invoke them.

Step 5: Create the Plan

Structure the plan with these sections:

  1. Issue Summary — one-sentence goal
  2. Affected Scopes — which scopes are touched and why
  3. Implementation Steps — each step must reference:
    • Concrete file paths (not placeholders)
    • Existing pattern to follow (a real file in the codebase)
    • Relevant scaffold skill if applicable
  4. Cross-Scope Impact — if packages/core changes, list downstream scopes that need testing
  5. Event System Impact — new Control or Display events needed? Check packages/core/swiss_ai_hub/core/events/
  6. Testing Strategy — which scopes need make test, new test files needed
  7. ADR Needed? — yes/no with justification
  8. Risks — ambiguities that need team input before starting

Rules

  • Every step must reference concrete files from the codebase, not placeholders
  • Follow existing patterns — read the scope's CLAUDE.md before proposing new abstractions
  • Identify step dependencies (what must happen first — typically packages/core before downstream scopes)
  • If packages/core is modified, list all downstream scopes that import from it

Troubleshooting

ProblemSolution
Issue not foundVerify issue number: gh issue list -R bbvch-ai/aihub-core
Issue is vagueList what needs clarification, suggest asking the issue author
Spans too many scopesBreak into sub-tasks, suggest splitting the issue
No existing pattern to followFlag as risk — may need an ADR for the new pattern
Sub-issues existUse the sub_issues API call from Step 1 for the breakdown

Done When

  • Plan references concrete file paths from the codebase (no placeholders)
  • All affected scopes identified with their CLAUDE.md consulted
  • Relevant ADRs checked and referenced
  • Applicable scaffold skills listed for the implementer
  • Cross-scope dependencies mapped

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.