agentleFS
AmaculisAmaculis/AgentWarden/.claude/skills/dev-workflow/SKILL.md

dev-workflow

Skill2 starsChanged 36 days agoMITView on GitHub

How to run AgentWarden development cheaply and keep sessions continuous — which work goes to Sonnet, Opus or Meta models (Muse Code), how to hand work to Muse Code, when to tell the user to /clear, and what to save to which .md file before ending a session. Use at the start of every task, when choosing a model or delegating to a subagent, when a task is finished, and when the session is getting long.

  • Reads credentials

40 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use brainstorm, retrospective and 7 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.
  • nicolasestremSkill

    brainstorm

    Structured idea generation and solution exploration with systematic analysis.

    Also in 5 projects that use this

  • MicrosoftSkill

    retrospective

    Review how work went and improve the next round. USE WHEN asked for a retro, delays, or process lessons. DO NOT USE for code review or transcript replay.

    Also in 3 projects that use this

  • GitHubSkill

    refactor

    Surgical code refactoring to improve maintainability without changing behavior. Covers extracting functions, renaming variables, breaking down god functions, improving type safety, eliminating code smells, and applying design patterns. Less drastic than repo-rebuilder; use for gradual improvements.

    Also in 4 projects that use this

  • HashiCorpSkill

    changelog

    Add a Changie change fragment (`.changes/<major>.x/unreleased/*.yaml`) for a GitHub Pull Request, commit, and push.

    Also in 3 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

  • GoogleSkill

    improve-codebase-architecture

    Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 29 edited versions we read keep these.

  • 0

    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. Very specific:

    Never send to Muse Code: anything in prompts/, decide.py, cascade.py, redact.py, scanner.py, hook wrappers, .env or anything with secrets, …

    line 28
  2. Very specific:

    When the current task fits a different row than the model in use, say at the start: "Эта задача для Opus — переключи /model opus, или …

    line 30
  3. Very specific:

    When the user returns, review the diff (Sonnet) against the brief before committing.

    line 48
  4. Very specific:

    Do not write to CLAUDE.md or docs/CONTEXT.md without the user's yes.

    line 69
  5. Very specific:

    Keep it to these lines. Do not recommend /clear in the middle of a change that is not committed or noted in SESSION.md.

    line 100
  6. Very specific:

    Read docs/SESSION.md if it exists.

    line 104

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

Development workflow

Goal: spend the Claude subscription only where it pays off, push mechanical work to Meta credits, and never lose context between sessions.

You cannot switch your own model. When a task needs a different model, say so in one line and the user switches with /model. For subagents, set the model yourself through the subagent's model field or the delegation call.

1. Pick the model

WorkModelWhy
Implementing a Size: small spec, tests, fixtures, refactors, rules, eval script, CI, docs editsSonnet (default)Well-specified work; Opus adds cost, not quality
Read-only searching across the repo, finding where something is usedSonnet subagent (or Haiku)Keeps file dumps out of the main context
Architecture changes, new module boundariesOpusWrong decisions here cost days
decide.py, cascade.py escalation logic, fail-safe paths, redact.py, hook wrappersOpus for design and review, Sonnet may implementSecurity-critical; this is what judges and attackers probe
Judge, scanner and red-team prompt design, analysing eval and red-team failures between tuning roundsOpusReasoning about why the model misjudges
Bulk attack generation for the eval setMeta — Muse Spark via make redteamRuns on Meta credits, not the Claude subscription; it is also a product feature
Scanner content cases (documents), seed action cases before the Meta loop existsSonnet redteam subagentHand-crafted hard negatives need careful wording
Debugging after 2 failed fix attempts on SonnetOpusStop the loop; a stronger model with a clean context is cheaper than a 3rd–5th attempt
Writing a Size: large specOpus, user editsThe spec drives everything after it
Dashboard HTML/CSS/JS, README draft, demo repo scaffolding, docstrings, eval report formatting, bulk eval case draftsMeta — Muse Code (user runs it, on Meta credits, Standard tier)Mechanical work; also counts as using Meta tools in judging
The judge, scanner and red-team generator inside the productMeta open weights (local) + Muse SparkProduct requirement; see the meta-api skill for which model plays which role

Never send to Muse Code: anything in prompts/, decide.py, cascade.py, redact.py, scanner.py, hook wrappers, .env or anything with secrets, labelling of eval/cases/ or eval/content/.

When the current task fits a different row than the model in use, say at the start: "Эта задача для Opus — переключи /model opus, или продолжу на Sonnet." Then continue as the user decides.

2. Handing work to Muse Code

You cannot run Muse Code. Prepare a brief the user pastes into it, saved as docs/handoff/NNN-<topic>.md:

# Handoff NNN — <topic> (for Muse Code, Standard tier)

Goal: <one sentence>
Read first: CLAUDE.md, <the 2–4 files it needs>
May change: <exact files or folders>
Must not change: everything else, especially src/agentwarden/decide.py, redact.py, hooks/, prompts/, eval/cases/
Contract: <endpoint / function signatures / data shape it must use>
Done when: <command(s) and expected result, e.g. `make test` green, page loads at /dashboard and lists events from /log>
Style: <constraints, e.g. one HTML file, no frameworks, no Streamlit>

When the user returns, review the diff (Sonnet) against the brief before committing. Note in the commit message (Muse Code) so it can be cited in the submission.

3. Where knowledge goes

FileWhat goes thereUpdate when
CLAUDE.mdStable rules, commands, invariantsRarely; only when a rule changes
docs/CONTEXT.mdDecisions, scope, plan changes, positioningThe user decides something, or the plan shifts
docs/SESSION.mdCurrent state, next step, open problemsEnd of every session and before every /clear. Overwrite, keep it under 30 lines
.claude/skills/*Repeated procedures, verified facts about APIs and hooksA fact is verified (e.g. a VERIFY item in meta-api), a real payload is captured, or the same explanation was needed twice
docs/specs/NNN-*.mdTick acceptance criteriaWhen each criterion passes

4. Prompt the user to save knowledge

Say it in one line, right when it happens, and offer to write it:

  • The user made a decision ("делаем без MCP", "дашборд режем") → "Записать в docs/CONTEXT.md?"
  • You verified a fact about Meta API or hooks → update the skill and say so.
  • You explained the same thing twice, or found a non-obvious workaround → "Это стоит записать в скилл <name> — добавить?"
  • A rule in CLAUDE.md turned out wrong or missing → propose the exact edit.

Do not write to CLAUDE.md or docs/CONTEXT.md without the user's yes. docs/SESSION.md you update yourself.

5. When to tell the user to /clear

Recommend /clear when any of these happens:

  • A spec is finished and committed.
  • The next task is in a different area than the last one.
  • The session is long: roughly 30+ tool calls, or many large files read, or context was compacted.
  • You notice yourself re-reading files or forgetting earlier decisions.
  • A debugging loop hit 3 attempts without progress.

Before recommending it:

  1. Overwrite docs/SESSION.md:
    # Session state — <date time>
    Done: <specs/commits this session>
    In progress: <what, and exactly where it stopped>
    Next: <next spec or step, and which model>
    Open problems: <bugs, unknowns, VERIFY items>
  2. List any pending knowledge to save (section 4) and ask.
  3. Then say, in the user's language, in this shape:
✅ 003 готова и закоммичена. SESSION.md обновлён.
Предлагаю записать в CONTEXT.md: <одна строка> — да?
Пора /clear. Следующая: 004 (Sonnet) — начни новую сессию с «Read docs/SESSION.md and continue».

Keep it to these lines. Do not recommend /clear in the middle of a change that is not committed or noted in SESSION.md.

6. Starting a session

Read docs/SESSION.md if it exists. Read docs/CONTEXT.md only when the task needs background. Do not scan the repo; open only the files the task names.

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.