/arn-code-bug-spec
This skill should be used when the user says "bug spec", "arness code bug spec", "investigate this bug", "help me debug", "trace this bug", "diagnose this issue", "I found a bug", "something is broken", "why is X not working", "fix this bug", "debug this", "why is this not
$ npx -y skills add AppsVortex/arness --skill arn-code-bug-spec --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.
- You can call itInvoke it directly when you want it.
- Slash command
/arn-code-bug-spec
Context preview
The summary Claude sees to decide when to auto-load this skill.
This skill should be used when the user says "bug spec", "arness code bug spec", "investigate this bug", "help me debug", "trace this bug", "diagnose this issue", "I found a bug", "something is broken", "why is X not working", "fix this bug", "debug this", "why is this not
SKILL.md
arn-code-bug-spec.SKILL.mdname: arn-code-bug-spec
description: >-
This skill should be used when the user says "bug spec", "arness code bug spec",
"investigate this bug", "help me debug", "trace this bug", "diagnose this
issue", "I found a bug", "something is broken", "why is X not working",
"fix this bug", "debug this", "why is this not working",
or wants to iteratively investigate a bug through guided conversation
with diagnostic analysis. Bridges the gap between a bug report and either
a direct fix or a structured bug specification for the Arness pipeline.
version: 1.0.0
Arness Bug Spec
Investigate a bug through iterative conversation, aided by diagnostic analysis from the `arn-code-investigator` agent, architectural validation from the `arn-code-architect` agent, and optional automated fix execution from the `arn-code-bug-fixer` agent. Every bug investigation gets its own project folder (`BUGFIX_<name>/`) in the plans directory. For simple bugs, the artifact is a fix plus a bug fix report. For complex bugs, the artifact is a **bug specification** written to `.arness/specs/` that informs plan creation via the `/arn-code-plan` skill.
This is a conversational skill. It runs in normal conversation (NOT plan mode). A `BUGFIX_<name>/` project folder is created at the start of every investigation. For simple bugs, the folder holds the fix report. For complex bugs, a specification document is written to `<specs-dir>/BUGFIX_<name>.md`, and the project folder is used later by `arn-code-save-plan` after the plan is generated via `/arn-code-plan`.
Step 0: Ensure Configuration
Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-ensure-config/references/step-0-fast-path.md` and follow its instructions. This guarantees a user profile exists and `## Arness` is configured with Arness Code fields before proceeding.
Workflow
Step 1: Capture the Bug Report
Accept the user's bug description. This can be anything from "X is broken" to a detailed report with stack traces, error messages, and reproduction steps. Do not require a specific format.
If the user already provided the bug description in their trigger message (e.g., "bug spec: users are getting 500 errors on checkout"), use that directly without asking again.
Acknowledge the report with a brief restatement to confirm understanding. Ask targeted follow-up questions ONLY if critical information is missing:
- What is expected vs actual behavior?
- Any error messages or stack traces?
- When did it start? (recent change, always broken, intermittent)
Do NOT require answers to all of these. Work with what is available and proceed.
Establish Project Folder
Once the bug is understood, create a project folder for the investigation:
1. Auto-generate a project name from the bug description (e.g., `BUGFIX_checkout-500-errors`, `BUGFIX_stale-cache-after-update`). 2. Suggest it to the user: "I'll create a bug investigation project called `BUGFIX_<name>`. Good?" 3. Once confirmed, read the `## Arness` section from CLAUDE.md to get the plans directory path, then create the project folder:
mkdir -p <plans-dir>/BUGFIX_<name>/reports
This folder is the home for all artifacts produced during this investigation. Hold the project path (`<project-folder>`) for use throughout the workflow.
---
Step 2: Load Codebase Context
Read the project's CLAUDE.md and extract the `## Arness` section to find:
- Code patterns path
- Specs directory
- Template path
- Template version (if present)
- Template updates preference (if present)
**Template version check:** If `Template version` and `Template updates` fields are present, run the template version check procedure documented in `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-save-plan/references/template-versioning.md` before proceeding. If `## Arness` does not contain these fields, treat as legacy and skip.
Read the stored pattern documentation:
- `<code-patterns-dir>/code-patterns.md`
- `<code-patterns-dir>/testing-patterns.md`
- `<code-patterns-dir>/architecture.md`
- `<code-patterns-dir>/ui-patterns.md` (if it exists)
**If pattern documentation files are missing** (no `code-patterns.md`, `testing-patterns.md`, or `architecture.md` in the Code patterns directory):
Inform the user: "This is the first time pattern documentation is being generated for this project. Analyzing your codebase to understand its patterns, conventions, and architecture. This is a one-time operation — future invocations will use the cached results."
Then invoke the `arn-code-codebase-analyzer` agent (existing codebase) or `arn-code-pattern-architect` (greenfield) to generate fresh analysis. Write the results to the Code patterns directory. Summarize the key findings relevant to the bug.
Hold this context for use throughout the conversation. Do not dump all of it on the user -- reference specific parts when relevant.
---
Step 3: Initial Investigation + Architectural Validation
Invoke the `arn-code-investigator` agent via the Task tool, passing the model from `.arness/agent-models/code.md` as the `model` parameter (see `plugins/arn-code/skills/arn-code-ensure-config/references/ensure-config.md` "Dispatch convention" for fallback). Context:
**Bug description:** The user's report from Step 1.
**Codebase context:** The full content of the stored pattern documentation files loaded in Step 2 (code-patterns.md, testing-patterns.md, architecture.md, and ui-patterns.md if present). If these were not available and `arn-code-codebase-analyzer` was used instead, pass that output.
**Specific hypothesis:** None for the initial invocation.
Once the investigator returns with a root cause and proposed fix direction, invoke the `arn-code-architect` agent via the Task tool, passing the model from `.arness/agent-models/code.md` as the `model` parameter (see `plugins/arn-code/skills/arn-code-ensure-config/references/ensure-config.md` "Dispatch convention" for fallback). Context:
**Feature idea:** The investigator's findings -- roo
Read more
name: arn-code-bug-spec description: >- This skill should be used when the user says "bug spec", "arness code bug spec", "investigate this bug", "help me debug", "trace this bug", "diagnose this issue", "I found a bug", "something is broken", "why is X not working", "fix this bug", "debug this", "why is this not working", or wants to iteratively investigate a bug through guided conversation with diagnostic analysis. Bridges the gap between a bug report and either a direct fix or a structured bug specification for the Arness pipeline. version: 1.0.0
Arness Bug Spec
Investigate a bug through iterative conversation, aided by diagnostic analysis from the `arn-code-investigator` agent, architectural validation from the `arn-code-architect` agent, and optional automated fix execution from the `arn-code-bug-fixer` agent. Every bug investigation gets its own project folder (`BUGFIX_<name>/`) in the plans directory. For simple bugs, the artifact is a fix plus a bug fix report. For complex bugs, the artifact is a **bug specification** written to `.arness/specs/` that informs plan creation via the `/arn-code-plan` skill.
This is a conversational skill. It runs in normal conversation (NOT plan mode). A `BUGFIX_<name>/` project folder is created at the start of every investigation. For simple bugs, the folder holds the fix report. For complex bugs, a specification document is written to `<specs-dir>/BUGFIX_<name>.md`, and the project folder is used later by `arn-code-save-plan` after the plan is generated via `/arn-code-plan`.
Step 0: Ensure Configuration
Read `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-ensure-config/references/step-0-fast-path.md` and follow its instructions. This guarantees a user profile exists and `## Arness` is configured with Arness Code fields before proceeding.
Workflow
Step 1: Capture the Bug Report
Accept the user's bug description. This can be anything from "X is broken" to a detailed report with stack traces, error messages, and reproduction steps. Do not require a specific format.
If the user already provided the bug description in their trigger message (e.g., "bug spec: users are getting 500 errors on checkout"), use that directly without asking again.
Acknowledge the report with a brief restatement to confirm understanding. Ask targeted follow-up questions ONLY if critical information is missing:
- What is expected vs actual behavior?
- Any error messages or stack traces?
- When did it start? (recent change, always broken, intermittent)
Do NOT require answers to all of these. Work with what is available and proceed.
Establish Project Folder
Once the bug is understood, create a project folder for the investigation:
1. Auto-generate a project name from the bug description (e.g., `BUGFIX_checkout-500-errors`, `BUGFIX_stale-cache-after-update`). 2. Suggest it to the user: "I'll create a bug investigation project called `BUGFIX_<name>`. Good?" 3. Once confirmed, read the `## Arness` section from CLAUDE.md to get the plans directory path, then create the project folder:
mkdir -p <plans-dir>/BUGFIX_<name>/reports
This folder is the home for all artifacts produced during this investigation. Hold the project path (`<project-folder>`) for use throughout the workflow.
---
Step 2: Load Codebase Context
Read the project's CLAUDE.md and extract the `## Arness` section to find:
- Code patterns path
- Specs directory
- Template path
- Template version (if present)
- Template updates preference (if present)
**Template version check:** If `Template version` and `Template updates` fields are present, run the template version check procedure documented in `${CLAUDE_PLUGIN_ROOT}/skills/arn-code-save-plan/references/template-versioning.md` before proceeding. If `## Arness` does not contain these fields, treat as legacy and skip.
Read the stored pattern documentation:
- `<code-patterns-dir>/code-patterns.md`
- `<code-patterns-dir>/testing-patterns.md`
- `<code-patterns-dir>/architecture.md`
- `<code-patterns-dir>/ui-patterns.md` (if it exists)
**If pattern documentation files are missing** (no `code-patterns.md`, `testing-patterns.md`, or `architecture.md` in the Code patterns directory):
Inform the user: "This is the first time pattern documentation is being generated for this project. Analyzing your codebase to understand its patterns, conventions, and architecture. This is a one-time operation — future invocations will use the cached results."
Then invoke the `arn-code-codebase-analyzer` agent (existing codebase) or `arn-code-pattern-architect` (greenfield) to generate fresh analysis. Write the results to the Code patterns directory. Summarize the key findings relevant to the bug.
Hold this context for use throughout the conversation. Do not dump all of it on the user -- reference specific parts when relevant.
---
Step 3: Initial Investigation + Architectural Validation
Invoke the `arn-code-investigator` agent via the Task tool, passing the model from `.arness/agent-models/code.md` as the `model` parameter (see `plugins/arn-code/skills/arn-code-ensure-config/references/ensure-config.md` "Dispatch convention" for fallback). Context:
**Bug description:** The user's report from Step 1.
**Codebase context:** The full content of the stored pattern documentation files loaded in Step 2 (code-patterns.md, testing-patterns.md, architecture.md, and ui-patterns.md if present). If these were not available and `arn-code-codebase-analyzer` was used instead, pass that output.
**Specific hypothesis:** None for the initial invocation.
Once the investigator returns with a root cause and proposed fix direction, invoke the `arn-code-architect` agent via the Task tool, passing the model from `.arness/agent-models/code.md` as the `model` parameter (see `plugins/arn-code/skills/arn-code-ensure-config/references/ensure-config.md` "Dispatch convention" for fallback). Context:
**Feature idea:** The investigator's findings -- roo
Showing the first part of this file.
Arness — H not required. Structured AI workflows for Claude Code. From first idea to production deploy. Seven entry commands. That's all you need to remember.
Repo: AppsVortex/arness
Other skills on arness.
- /arn-assessing
This skill should be used when the user says "assessing", "arness assessing", "assess", "assess codebase", "technical review", "codebase assessment", "find improvements", "what should I improve", "tech debt review", "pattern compliance check", "codebase health check",
Open skill - /arn-code-assess
This skill should be used when the user says "arness code assess", "arn-code-assess", "assess codebase", "technical review", "codebase assessment", "find improvements", "what should I improve", "tech debt review", "tech debt audit", "pattern compliance check", "codebase health
Open skill - /arn-code-batch-cve-fix
This skill should be used when the user says "fix CVEs", "patch vulnerabilities", "apply security patches", "resolve security advisories", "batch CVE fix", "patch dependencies", "fix security findings", "remediate CVEs", "apply CVE fixes", "batch fix vulnerabilities", "resolve
Open skill - /arn-code-batch-cve-scan
This skill should be used when the user says "scan for CVEs", "CVE scan", "check for vulnerabilities", "find vulnerabilities", "check security advisories", "dependabot triage", "dependabot scan", "scan dependencies for security issues", "audit dependencies", "vulnerability
Open skill - /arn-code-batch-implement
This skill should be used when the user says "batch implement", "implement all", "batch execution", "implement all features", "parallel implement", "implement in parallel", "arness batch implement", "arn-code-batch-implement", "run batch implementation", "implement everything",
Open skill - /arn-code-batch-merge
This skill should be used when the user says "batch merge", "merge batch", "arness batch merge", "arn-code-batch-merge", "merge all PRs", "merge batch PRs", "merge the batch", "merge implemented features", "batch merge PRs", "merge open PRs", "merge all feature PRs", "combine
Open skill

