agentleFS
andrewvaughanandrewvaughan/agent-council/skills/hotfix/SKILL.md

hotfix

Skill14 starsChanged 9 months agoMITView on GitHub

Fast-track an urgent fix through a streamlined pipeline. Skips Product/Feature Council, applies the fix, runs a focused review, and creates a PR with optional Deployment Council. Use for production bugs, security patches, or critical regressions that cannot wait for the full planning pipeline.

  • Commits and pushes

16 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use create-stories, dev-story and 10 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.
  • cenconq25Skill

    create-stories

    Decomposes a single epic into implementable story files. Each story embeds its TR-ID, governing ADR, acceptance criteria, story type, and test-evidence path. Run after /create-epics for each epic, in dependency order. Stories are what developers pick up — epics are what architects define.

    Also in 6 projects that use this

  • cenconq25Skill

    dev-story

    Read a story file and implement it end-to-end. Loads PRD requirement, governing ADR, control manifest, and routes to the right framework specialist (RN/Flutter/iOS/Android). Use when a story has passed /story-readiness and is ready to be built.

    Also in 6 projects that use this

  • CoralGameSkill

    playtest-report

    Generates a structured playtest report template or analyzes existing playtest notes into a structured format. Use this to standardize playtest feedback collection and analysis.

    Also in 6 projects that use this

  • CoralGameSkill

    team-audio

    Orchestrate audio team: audio-director + sound-designer + technical-artist + gameplay-programmer for full audio pipeline from direction to implementation.

    Also in 6 projects that use this

  • +6 more from cenconq25
  • +2 more from CoralGame

The file

Show its rules and text

We split this skill into the rules it gives an agent

14 rules. 0 are common, 11 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 15 edited versions we read keep these.

  • 11

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask the user to describe the issue.

    line 21
  2. Distinctive:

    If the user provides a GitHub issue number, fetch it:

    line 28
  3. Distinctive:

    Ensure you are on main and up to date:

    line 38
  4. Very specific:

    Create a fix/ branch:

    line 46
  5. Very specific:

    If a GitHub issue exists, add the in-progress label (following AGENTS.md label management rules — remove from any other issue first).

    line 52
  6. Distinctive:

    Write or update tests to cover the bug (regression test).

    line 61
  7. Distinctive:

    Test results (pass/fail, coverage)

    line 77
  8. Distinctive:

    Wait for user approval before committing.

    line 79
  9. Distinctive:

    Commit with conventional commit format:

    line 83
  10. Distinctive:

    Run a lightweight review (not the full Review Council):

    line 92
  11. Distinctive:

    If the security scan finds Critical or High severity issues in the changed files, present them to the user.

    line 97
  12. Distinctive:

    If none of these apply, skip to Step 7.

    line 107
  13. Very specific:

    If activated, run the Deployment Council evaluation from .claude/councils/deployment-council.md with all 3 members (Platform Engineer, …

    line 109
  14. Distinctive:

    If CI fails, diagnose and fix.

    line 159

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

Hotfix Workflow

Apply an urgent fix through a streamlined pipeline that skips the full planning cycle. This skill is for production bugs, security patches, and critical regressions.

[!CAUTION] This is NOT a shortcut for feature work. If the change adds new functionality, changes user-facing behavior, or touches more than ~100 lines, use /plan-feature instead. Hotfixes should be small, focused, and clearly scoped.

[!CAUTION] Scope boundary: This skill implements the fix, reviews it, creates a PR, and monitors CI. It covers the full lifecycle for urgent fixes so the user does not need to chain multiple skills.

Step 1: Define the Fix

CHECKPOINT: Confirm Hotfix Scope

Ask the user to describe the issue. Gather:

  1. What is broken? (symptom, error message, affected users)
  2. Where is the bug? (file, endpoint, component — if known)
  3. How urgent? (production down, data corruption, security vulnerability, degraded experience)
  4. GitHub issue number (if one exists)

If the user provides a GitHub issue number, fetch it:

gh issue view <number> --json title,body,labels,state,number

Present a summary and ask the user to confirm this is appropriate for hotfix (not a feature).

Step 2: Create Branch and Investigate

  1. Ensure you are on main and up to date:

    git fetch origin
    git checkout main
    git pull origin main
  2. Create a fix/ branch:

    git checkout -b fix/<short-description>
  3. If a GitHub issue exists, add the in-progress label (following AGENTS.md label management rules — remove from any other issue first).
  4. Investigate the bug: read relevant files, reproduce the issue if possible, identify the root cause.

Present the root cause analysis to the user before proceeding.

Step 3: Apply the Fix

  1. Make the minimal change needed to resolve the issue.
  2. Write or update tests to cover the bug (regression test).
  3. Run self-checks:

    pnpm type-check
    pnpm lint
    pnpm test
  4. Fix any failures from the checks above.

CHECKPOINT: Review the Fix

Present:

  • Files changed (with a brief description of each change)
  • Tests added or modified
  • Test results (pass/fail, coverage)

Wait for user approval before committing.

Step 4: Commit

Commit with conventional commit format:

git add <specific-files>
git commit -m "fix(<scope>): <description>"

Step 5: Focused Review

Run a lightweight review (not the full Review Council):

  1. Security scan (always): Invoke /security-scanning:security-sast on changed files.
  2. Accessibility check (if frontend changes): Invoke /ui-design:accessibility-audit on modified components.

If the security scan finds Critical or High severity issues in the changed files, present them to the user. Fix any legitimate findings before proceeding.

Step 6: Deployment Council (Conditional)

Activate the Deployment Council only if the fix involves:

  • Database migrations
  • Docker or infrastructure changes
  • Environment variable modifications
  • Authentication or authorization code

If none of these apply, skip to Step 7.

If activated, run the Deployment Council evaluation from .claude/councils/deployment-council.md with all 3 members (Platform Engineer, Security Engineer, QA Lead).

CHECKPOINT: Deployment Readiness

Present the Deployment Council verdict. Wait for user approval.

Step 7: Create PR and Monitor CI

  1. Run pre-push checks:

    pnpm type-check && pnpm lint && pnpm format:check && pnpm test

    Auto-fix formatting issues with pnpm format if format:check fails.

  2. Push and create PR:

    git push -u origin fix/<short-description>
  3. Generate PR description. Use the template from .github/PULL_REQUEST_TEMPLATE.md if it exists. Include:
    • Description of the bug and root cause
    • The fix applied
    • Tests added
    • Related issue number (if applicable)

CHECKPOINT: PR Description

Present the PR title and body. Wait for user approval.

  1. Create the PR:

    gh pr create --title "<title>" --body "<body>"
  2. Monitor CI:

    gh run list --branch fix/<short-description> --limit 1 --json databaseId --jq '.[0].databaseId'

    Then watch:

    gh run watch <run-id> --exit-status
  3. If CI fails, diagnose and fix. Present the fix to the user before committing.

Step 8: Hand Off

Present the completed hotfix summary:

  • PR URL
  • Files changed
  • Tests added
  • CI status
  • Related issue (if applicable)

You completed /hotfix. The PR is ready for merge. If there is a related GitHub issue, it will close automatically when the PR merges (if the PR body includes Closes #N).

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.