agentleFS
BostonOrangeBostonOrange/claude-code-framework/skills/develop/SKILL.md

develop

Skill2 starsChanged 6 months agoMITView on GitHub

Full development cycle - fetches ticket from work item tracker, analyzes, implements, validates, fixes build errors, and creates PR. Use when developing a ticket end-to-end.

  • Commits and pushes

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use scope, document and 8 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • vltingSkill

    scope

    Interactive planning + orchestration. Approval-gated workflow covering saga→epic→task hierarchy via progressive scoping.

    Also in 6 projects that use this

  • nicolasestremSkill

    document

    Create focused documentation for specific components or features

    Also in 5 projects that use this

  • MicrosoftSkill

    sync

    Sync the current session branch with its upstream branch, or publish the current session branch to a remote. Use when the user asks to sync a branch, pull latest changes, rebase onto upstream, push current branch, publish branch, or set upstream.

    Also in 6 projects that use this

  • kt057Skill

    check

    lint, typecheck, test を一括実行して結果をサマリーする

    Also in 5 projects that use this

  • jdonohooSkill

    architect

    Architect Vern - Systems design, scalable architecture, production-grade thinking. The blueprints before the build.

    Also in 9 projects that use this

  • Microsoft AzureSkill

    test

    Also in 6 projects that use this

The file

Show its rules and text

We split this skill into the rules it gives an agent

33 rules. 0 are common, 27 are distinctive, and 6 are very specific to this project.

  • 0

    Common

    Most of the 18 edited versions we read keep these.

  • 27

    Distinctive

    This author's own choices. Worth a look.

  • 6

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no ticket ID provided, ask for it.

    line 18
  2. Very specific:

    When invoked with --factory (or from /factory), all interactive gates use auto-defaults:

    line 22
  3. Distinctive:

    After displaying the summary, check state.

    line 54
  4. Very specific:

    If already on {TICKET_ID} branch with existing work -> skip, continue

    line 85
  5. Distinctive:

    If not on correct branch -> decide branching strategy

    line 86
  6. Distinctive:

    Check memory for user's worktree workflow before prompting:

    line 89
  7. Distinctive:

    If memory says "always worktree" → create worktree without asking

    line 90
  8. Distinctive:

    If memory says "main repo" → checkout branch without asking

    line 91
  9. Distinctive:

    If no memory → ask user "Create feature branch as worktree or in main repo?", then save their preference to memory

    line 92
  10. Very specific:

    Check memory for dedicated base branch worktree.

    line 95
  11. Distinctive:

    Factory mode: Always use worktree (no prompt):

    line 97
  12. Very specific:

    Before writing code, identify which libraries/frameworks the implementation touches.

    line 130
  13. Distinctive:

    Create/modify components following CLAUDE.md coding standards.

    line 134
  14. Distinctive:

    Follow project error handling patterns

    line 136
  15. Distinctive:

    Use test data factories (never construct test data inline)

    line 137
  16. Distinctive:

    No debug statements in production code

    line 138
  17. Distinctive:

    Verify enum/picklist values from source of truth before using

    line 141
  18. Distinctive:

    Never run project-wide formatting.

    line 149
  19. Distinctive:

    Factory mode: Run code standards only. CI handles deployment.

    line 153
  20. Distinctive:

    Check memory for known environment aliases:

    line 156
  21. Distinctive:

    Before validation, check memory for known build issues that apply to this story's components.

    line 162
  22. Distinctive:

    Interactive mode: Ask user which environment to deploy to, then launch two parallel tasks:

    line 164
  23. Distinctive:

    If both pass -> Phase 7

    line 176
  24. Distinctive:

    If either fails -> Phase 6

    line 177
  25. Distinctive:

    After the sub-agent reports back:

    line 187
  26. Distinctive:

    If a non-obvious fix was applied (something that wasn't clear from the error message alone), save it to memory so future conversations …

    line 194
  27. Distinctive:

    Stop execution — do not proceed to PR.

    line 200
  28. Distinctive:

    Run project test suite if relevant components were modified:

    line 228
  29. Distinctive:

    Check memory for team's PR conventions:

    line 247
  30. Distinctive:

    Ask user before transitioning (skip prompt in factory mode).

    line 278
  31. Distinctive:

    Interactive mode: Ask the user:

    line 284
  32. Very specific:

    If yes -> Spawn /update-tracker {TICKET_ID} as a background sub-agent.

    line 287
  33. Very specific:

    After every completed development cycle, spawn /improve in the background to evolve the .claude/ configuration:

    line 291

“Common” is measured: kept by at least 6 in 10 of the 18 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

Develop

End-to-end development cycle: fetch ticket, analyze, implement, validate, fix, commit, PR.

Usage

/develop TICKET-1234
/develop 1234
/develop TICKET-1234 --factory    # Factory mode (all auto-defaults)

If no ticket ID provided, ask for it. If user pastes story content directly, skip Phase 1 and ask for a ticket ID for naming.

Factory Mode

When invoked with --factory (or from /factory), all interactive gates use auto-defaults:

Decision PointInteractive (default)Factory Mode
Phase 2: Gap analysisAsk user if major gapsSkip (readiness gate already passed)
Phase 3: Worktree vs main repoAsk userAlways worktree
Phase 5: ValidationDeploy + code standardsCode standards only (CI handles deployment)
Phase 7: PR labelNo labelAdd factory label (triggers CI deploy)
Phase 7: Ticket state transitionAsk userAuto-transition to review state
Phase 8: Push to trackerAsk userAuto-push
Phase 6: On standards failurePresent options to userHalt + notify

CRITICAL — when invoked from /factory: /develop --factory handles Phases 1-5 (fetch, analyze, branch, implement, code standards). It does NOT push, create a PR, or update the tracker. Control returns to /factory which may run additional validation BEFORE pushing.

Phase 1: Fetch Ticket from Tracker

Parse ticket ID from input. Accept TICKET-1234 or just 1234.

{{TRACKER_FETCH_TICKET}}

Extract from response:

  • Title
  • State/Status
  • Type (story, bug, task)
  • Assignee
  • Description
  • Acceptance Criteria

Display summary table, then show cleaned Description and Acceptance Criteria.

Auto-transition to In Progress

After displaying the summary, check state. If not "In Progress" (or equivalent):

{{TRACKER_SET_IN_PROGRESS}}

Confirm to user: "Set TICKET-{id} to In Progress (assigned to {display_name})"

Phase 2: Analyze & Refine

Factory mode: Skip this phase — /check-readiness already validated the ticket.

Interactive mode: Evaluate ticket against refinement criteria:

CategoryCheck For
Technical DetailsMissing field specs, API names, relationships
Business LogicAmbiguous rules, calculations, workflow steps
Integration ImpactEffects on external systems not specified
Permission/SecurityMissing access control requirements
Testing GapsInsufficient acceptance criteria, missing edge cases
ScopeWhat's included/excluded

Scan codebase for affected components. Reference domain skills when relevant.

Decision:

  • Major gaps -> Recommend running /refine-story first. Stop here.
  • Minor gaps -> Ask 3-5 targeted clarifying questions. Continue after answers.
  • Ready -> Present implementation overview. Get user confirmation.

Phase 3: Git Branch Setup

Check current branch:

  • If already on {TICKET_ID} branch with existing work -> skip, continue
  • If not on correct branch -> decide branching strategy

Memory checkpoint — worktree preference: Check memory for user's worktree workflow before prompting:

  • If memory says "always worktree" → create worktree without asking
  • If memory says "main repo" → checkout branch without asking
  • If no memory → ask user "Create feature branch as worktree or in main repo?", then save their preference to memory

Memory checkpoint — base branch naming: Check memory for dedicated base branch worktree. If user keeps a dedicated worktree for {{BASE_BRANCH}}, never checkout that branch in the main repo.

Factory mode: Always use worktree (no prompt):

git fetch origin {{BASE_BRANCH}}
git worktree add ../{{PROJECT_SHORT_NAME}}-{TICKET_ID} -b {TICKET_ID} origin/{{BASE_BRANCH}}

Default (main repo):

git fetch origin {{BASE_BRANCH}}
git checkout -b {TICKET_ID} origin/{{BASE_BRANCH}}

Worktree:

git fetch origin {{BASE_BRANCH}}
git worktree add ../{{PROJECT_SHORT_NAME}}-{TICKET_ID} -b {TICKET_ID} origin/{{BASE_BRANCH}}

Phase 4: Implement

Story Documentation

Create docs/stories/{TICKET_ID}/ with:

FileContent
story.mdFull story with ACs, technical spec
solutions-components.mdComponents changed/created (bullet form)
how-to-test.mdTesting instructions
manual-steps.mdPre/post deployment steps (only if needed)

Library Documentation Lookup

Before writing code, identify which libraries/frameworks the implementation touches. Fetch documentation using the /fetch-docs skill pattern (resolve-library-id then get-library-docs). This ensures implementation uses current API patterns, not stale training data.

Implementation

Create/modify components following CLAUDE.md coding standards. Key guardrails:

  • Follow project error handling patterns
  • Use test data factories (never construct test data inline)
  • No debug statements in production code
  • No commented-out code
  • Constants over magic values
  • Verify enum/picklist values from source of truth before using

Format Changed Files

{{FORMAT_COMMAND}}

Never run project-wide formatting. Format only files you created or modified.

Phase 5: Validate

Factory mode: Run code standards only. CI handles deployment.

Memory checkpoint — environment aliases: Check memory for known environment aliases:

  • Preferred validation environment (e.g., "UAT" vs "CI sandbox")
  • Environments to skip (e.g., "CI sandboxes have pre-existing failures")
  • Production alias (add confirmation gate if accidentally selected)

Memory checkpoint — recurring build fixes: Before validation, check memory for known build issues that apply to this story's components. Apply preventive fixes proactively (e.g., don't add required fields to permission sets).

Interactive mode: Ask user which environment to deploy to, then launch two parallel tasks:

Task A — Deployment:

{{DEPLOY_VALIDATE_COMMAND}}

Task B — Code standards check: Run /validate {TICKET_ID}

Both are slow and independent — launch simultaneously. Wait for both to complete.

  • If both pass -> Phase 7
  • If either fails -> Phase 6

Phase 6: Fix Build Failures (max 3 attempts)

For each failure, spawn a sub-agent to:

  1. Receive the error output
  2. Parse errors, identify root cause
  3. Apply fixes
  4. Report back what changed

After the sub-agent reports back:

  1. Log attempt to docs/stories/{TICKET_ID}/build-log.md
  2. Retry from Phase 5

After 3 failures:

Memory checkpoint — save build fix: If a non-obvious fix was applied (something that wasn't clear from the error message alone), save it to memory so future conversations don't repeat the same mistake.

Interactive mode: Present errors with options: fix manually, skip validation, abort.

Factory mode: Halt and notify: {{NOTIFY_HALT}} Stop execution — do not proceed to PR.

Build Log Format

# Build Log - {TICKET_ID}

## Attempt 1 -- {timestamp}
**Target:** {environment or "code standards"}
**Result:** FAILED

### Errors
{error output}

### Root Cause
{brief description}

### Fix Applied
{what changed}

### Files Modified
- `path/to/file`

Phase 7: Commit & Create PR

Pre-commit checks

Run project test suite if relevant components were modified:

{{TEST_COMMAND}}

Commit

Stage specific files (never git add -A):

git add path/to/file1 path/to/file2

Push & PR

git push -u origin {TICKET_ID}

Memory checkpoint — PR conventions: Check memory for team's PR conventions:

  • Title format (e.g., {TICKET-ID}: {exact story title})
  • Body style (short summary? test plan? AI attribution?)
  • Reviewers (CODEOWNERS? self-assign? specific team?)

Create PR:

gh pr create --base {{BASE_BRANCH}} --assignee @me \
  --title "{TICKET_ID}: {Story Title}" \
  --body "$(cat <<'EOF'
## Summary
- {short summary of changes}

[Ticket: {TICKET_ID}]({{TRACKER_TICKET_URL}})
EOF
)"

Factory mode:

gh pr edit {pr_number} --add-label "factory"

Link PR to Tracker

{{TRACKER_LINK_PR}}

Post-PR State Transition

{{TRACKER_SET_IN_REVIEW}}

Ask user before transitioning (skip prompt in factory mode).

Phase 8: Update Tracker (Background Sub-Agent)

Factory mode: Auto-push without prompting.

Interactive mode: Ask the user:

Push story docs to work item tracker? (acceptance tests, deployment notes)

If yes -> Spawn /update-tracker {TICKET_ID} as a background sub-agent.

Phase 9: Framework Improvement (Background)

After every completed development cycle, spawn /improve in the background to evolve the .claude/ configuration:

Skill: /improve
Mode: background (fire-and-forget)

/improve orchestrates framework-improver-detector → framework-improver-applier. It:

  • Fills any remaining {{...}} placeholders in CLAUDE.md from project state (subject to the /setup-owned skip-list — onboarding decisions are never overwritten)
  • Updates .claude/rules/ patterns if actual file paths have drifted
  • Notes newly discovered coding patterns or conventions
  • Logs changes to docs/ai-improvements.md (append, never overwrite)

This runs after Phase 8 completes — it never blocks the developer.

Factory mode: Same behavior — runs in background after tracker update.

Edge Cases

ScenarioBehavior
No ticket ID providedAsk user for it
Story pasted directly (no tracker)Skip Phase 1, ask for ticket ID for naming
Already on feature branch with workSkip Phase 3, read existing docs for context
User says "skip validation"Go from Phase 4 directly to Phase 7
Story needs major refinementRecommend /refine-story first, pause
Pre-deploy dependencies existCreate predeploy manifest, document in manual-steps.md
build-log.md already existsAppend new attempts, never overwrite
Auth not configuredPrompt user to configure credentials

Related Skills

  • /update-tracker — Push story docs to tracker (Phase 8)
  • /improve — Manual framework improvement (Phase 9 runs this automatically)
  • /refine-story — Full story refinement
  • /check-readiness — Readiness gate (factory prerequisite)
  • /factory — End-to-end factory pipeline (invokes /develop --factory)
  • /draft-story — Create new stories

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.