/cc-arsenal:implement-feature <feature_description>from cc-arsenal
Implements a new feature end-to-end: discovers project conventions, researches best practices, drafts a plan, then builds with parallel subagents, reusing existing code and verifying with tests.
Ships in cc-arsenal. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Implement a new feature as a Senior Staff Engineer would (SOLID, DRY, YAGNI) to produce a secure, fast, reliable change.
This skill produces exactly one of two outputs: an implemented feature (Phases 0-6 below), or (when the Ambiguity Gate at the start of Phase 0 fails) 2-3 clarifying questions and nothing else. Never both in the same turn.
$ARGUMENTS
Before implementing anything:
bun, npm, make, etc. exist.Makefile, justfile, package.json, pyproject.toml.Write the smallest change that fully does the job, and that the next person can change without fear. Two goals at once: minimal footprint, easy to change.
Before you add code, search this codebase, the standard library, the framework, and installed dependencies first: reuse beats reimplementation. Build only what a current, concrete requirement needs, skip speculative flags, options, or extension points for a future that may never come. Watch for abstraction that isn't earning its keep: no interface with a single implementation, no factory for one product, no wrapper that only forwards; add indirection once a second caller actually appears.
While you write it, put logic where a future change touches one spot, fixing the shared function once instead of guarding every caller. Favor the change that reuses or deletes code over the one that adds it, fewer files and a shorter diff, as long as it stays complete. Trace the real flow of the code you touch, end to end, before changing it: a tiny diff written without understanding is a liability, not lean.
The line you never cross: lean, never negligent "Only what the task needs" is about scope, not corner-cutting. Validating input at trust boundaries and handling errors or data loss stay in scope no matter how small the change is, and so does keeping it secure and accessible. A version that drops any of that isn't leaner: it's unfinished.
When you deliberately simplify
Leave an auditable trail instead of a silent gap:
// LEAN-DEBT: <the limitation>. Upgrade when <the trigger>.
e.g. // LEAN-DEBT: in-memory rate limit, single instance only. Upgrade to Redis when we run >1 replica.
A marker is for a shortcut chosen on purpose: never a license to skip the never-negligent line above.
Before marking an implementation complete, run the project's real commands (discovered in Phase 0) and require all of them to pass: the test suite (e.g. make test, npm test, pytest), lint (e.g. make lint, npm run lint, ruff check), and type check / build if the project has one.
Any check fails → keep working, do not mark complete. Command not found → go back to Phase 0 discovery, don't guess one.
Create Task-system entries (TaskCreate/TaskUpdate) only when the feature crosses
one of these:
Below that threshold (the common 3-5-file feature), run the phases in order below as plain sequential work with no task-system calls at all. The phase structure is the contract; the task ceremony is bookkeeping for when there's enough concurrent work to need it.
When the threshold is crossed, see references/task-best-practices.md for the literal
6-task dependency chain (call templates, parallel child-task pattern, antipatterns to
avoid): set it up once at the start of Phase 0, then flip status at the start/end of
each phase.
No Task/TaskCreate tools available? Skip task tracking and subagent parallelism
regardless of size: work through every phase below yourself, sequentially, in order.
Nothing about the workflow's correctness depends on the task system; it only depends on
doing Discovery → Research → Plan → Implement → Verify → Commit in that order.
Running in an eval or sandbox harness? Never call the real session
Task/TaskCreate/TaskUpdate/TaskList tools there: those would mutate the
operator's actual task list. If the prompt asks you to record intended calls into a file
instead (e.g. outputs/tasks.json), write the full task chain there and treat that file
as the graded deliverable, rather than skipping ceremony or only narrating it in prose.
Step 0.0: Ambiguity gate. Check this before anything else, including task creation.
Can you name the concrete behavior to build (what surface, what data, what constraints) without inventing any load-bearing decision yourself? Missing small details (exact copy, minor styling, file layout) doesn't fail this check; note the assumption and keep going. Fails when the request leaves open multiple structurally different implementations and picking one means guessing at a decision the user would want to make themselves: e.g. "add support for team accounts" with no team size limit, billing model, permission roles, or invitation flow specified.
If it fails: end your response with 2-3 concrete clarifying questions about the
ambiguous decision points (AskUserQuestion if available, else plain prose) and produce
nothing else: no task-system entries, no plan, no file created or modified, no command
run, no commit. Code built on a guessed requirement has to be audited line-by-line
against what the user actually meant, which costs more than asking first.
If it passes, continue to Step 0.1.
Step 0.1: Discover project commands.
Above the size threshold, create the 6-task chain now (see reference doc); mark this
phase in_progress.
Identify the project's real test, lint, type-check, build, and dev-server commands:
read CLAUDE.md, then check for Makefile, justfile, package.json scripts,
pyproject.toml. If a Task tool is available, delegate this to an Explore/haiku
subagent (cheap, token-efficient for a read-only lookup); otherwise read the files
yourself. Store whatever you find: every later phase uses these exact commands, never
assumed ones.
Above threshold: mark Phase 0 completed, run TaskList to confirm Phase 1 unblocked.
Above threshold: mark this phase in_progress.
Before writing code: search the web for current best practices for the feature
(security considerations, common pitfalls, performance notes), check Context7 for any
library docs involved, and explore the codebase for similar existing implementations,
conventions, and test fixtures to match. If a Task tool is available, delegate this to
an Explore/haiku subagent; otherwise do it inline.
Above threshold: mark Phase 1 completed, run TaskList.
EnterPlanMode).Above threshold: mark Phase 2 completed, run TaskList.
Above threshold: mark this phase in_progress.
For up to ~3 parallel workstreams (e.g. API + UI + tests), spawn and track subagents
yourself using the call template in references/task-best-practices.md. If the plan
needs more fan-out than that (large multi-service features, many independent
components), delegate to the orchestrate skill instead of re-deriving spawn/track/
merge logic here.
Give each subagent: the specific task, an instruction to read CLAUDE.md first and trace the real flow of code it's about to touch, the Lean Code rules above, the discovered test/lint commands, and an instruction to report back rather than commit.
Model selection: always set model explicitly, never leave it unset:
sonnet for implementation, test writing, docs, architecture decisions.haiku only for exploration/research subagents.opus for subagent work: too expensive for this fan-out.After each subagent completes: review its diff, mark its task completed (if
tracking), and commit its work via the git-commit skill (or a manual conventional
commit) before moving to the next.
Above threshold: mark Phase 3 completed once every child task is done, run
TaskList to confirm Phase 4 unblocked.
Above threshold: mark this phase in_progress.
Run the Phase 0 discovered test, lint, and type-check/build commands. Fix every failure before proceeding. Repeat until all pass. Never mark this phase complete with a red check.
Above threshold: mark Phase 4 completed, run TaskList.
Above threshold: mark this phase in_progress.
Only proceed once every check passes: review all changes, create a final integration commit if needed (conventional commit format), summarize what was implemented.
Above threshold: mark Phase 5 completed, run TaskList: everything should show
completed.
If the feature has a UI, use the agent-browser skill: start the dev server, open the
feature (agent-browser open <url>), take a snapshot (agent-browser snapshot -i),
interact via refs (agent-browser click @e1), capture a screenshot, then
agent-browser close.
Skip for backend-only changes, pure refactors, test-only changes, or CLI tools with no UI.
Each subagent's output should satisfy:
LEAN-DEBT: markers for deliberate shortcuts)If a subagent hits an issue: log it clearly, attempt a within-scope fix, and if it can't be fixed report back with details. Never commit broken code.
The hard stop is Step 0.0 above: this section is for smaller ambiguity that surfaces
once the gate has already passed. Unclear secondary detail at any later phase (a design
choice with more than one valid answer, a missing preference): use AskUserQuestion,
present concrete options with trade-offs, and if there's no answer yet, state the
assumption you're proceeding with rather than blocking. Don't re-litigate the gate here:
if a later discovery reveals the core behavior was never actually pinned down, stop
and go back to asking, the same way Step 0.0 would have.
Summarize: features implemented, files created/modified, tests added, manual-testing results (if performed), and any known limitations or follow-up items. Every number in this summary must trace back to a command actually run this session (see Anti-hallucination guidelines).
# Implement a specific feature
/implement-feature Add user authentication with OAuth2
# Implement with more context
/implement-feature Create a REST API endpoint for managing user preferences with validation
# Implement a refactoring-shaped feature (new behavior, not pure restructuring)
/implement-feature Migrate the payment module to a strategy pattern to support a second provider
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub mgiovani/ai-arsenal --plugin cc-arsenal52 skills in this plugin
/agent-browserHeadless browser automation CLI optimized for AI agents: drives a real browser via accessibility-tree snapshots and @e1-style refs for ~93% less context than raw DOM tools. Use whenever a task needs to interact with a live web page: click, fill forms, log in, extract text or data, take screenshots, test a running web app, or scrape a site. Triggers on 'automate the browser', 'fill this form', 'click the button', 'take a screenshot of the page', 'log into', 'scrape this site', 'test my web app', 'headless browser'. Not for Playwright test-suite authoring or CDP/service-worker work needing the full JS API: use Playwright directly. Not for driving the user's own already-open, logged-in Chrome tab: use claude-in-chrome for that./anything-to-skillTurns a docs site, local folder, PDF or book, YouTube video, playlist or channel, or a topic into a source-grounded, token-efficient agent skill (hub SKILL.md, sectioned references, INDEX, evals), and can compact it into a lean expert skill. Use for "make a skill from these docs", "turn this channel into a skill". Not for a skill from your own description (use create-skill), improving one (use improve-skill) or finding third-party skills (use find-skills)./ci-generateGenerate a production-ready CI/CD pipeline config (GitHub Actions, GitLab CI, CircleCI, or Jenkins) by discovering the project's actual stack, test/build commands, and dependencies. Use when setting up CI for a new project, adding a missing workflow file, or asked to create/generate a pipeline, workflow, or `.gitlab-ci.yml`/`Jenkinsfile`. Not for writing a Dockerfile itself (see docker-init), this only wires CI stages around one. Not for running existing CI checks locally (use ci-local), this skill only authors the pipeline file itself./ci-localRun the checks a GitHub Actions workflow would run, locally, when Actions is unavailable or out of quota. Parses .github/workflows/*.yml, extracts the jobs/steps that gate merges (lint, typecheck, test, build), translates them to local commands respecting the workflow's pinned node/python versions and env, executes them sequentially, and reports a parity table of what passed locally vs. what can't be replicated (service containers, secrets, matrix dimensions) and why. Activates on "CI quota", "Actions is down/unavailable", "run CI locally", "verify like CI would", "run the pipeline on my machine", or a pre-push request to check a branch the way CI checks it. Not for generating a new workflow file (use ci-generate), not for debugging why a specific CI run failed on GitHub (use fix-bug or review-code), and not for the release/hotfix gating process itself (use gitflow), this skill only produces the local stand-in when the real thing isn't reachable./clotho-researchFind what a change will actually touch before planning it — the existing code that must change, the prior art worth copying, and the risks that will bite. Trigger on "what would this change touch", "research this before we plan it", or an automated pre-planning step. Reports files, sources, and risks; it never proposes an implementation and never edits anything. Not for auditing dependencies (use review-deps), not for writing the plan itself (use project-planner), and not for reviewing code that already exists (use review-code)./codex-imagegenGenerates images and polished raster art (logos, mascots, hero images, icons, characters, sprite sheets, illustrations, product mockups) by driving Codex CLI's $imagegen skill. This is the default image generator, use it for any request to generate or create an image or visual asset, including "generate an image", "create a hero image", "make a mascot", "design a logo", "draw an icon", "generate a sprite sheet", or "make an illustration". Requires the `codex` CLI installed and authenticated (ChatGPT auth). Not for architecture, flow, or sequence diagrams (use docs-diagram).