agentleFS
oocxoocx/tfplan2md/.agents/skills/agent-runtime/SKILL.md

agent-runtime

Skill174 starsChanged 2 months agoMITView on GitHub

Operating conventions shared by every role - delegating, committing, asking, running tests, model tiers, and artifact ownership. Load this before acting as any role.

9 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use ecosystem-reference, fractal-delegation 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.
  • naman10parikhSkill

    ecosystem-reference

    Quick-access directory of Claude Code ecosystem repos, skills, plugins, MCPs, and patterns. Use when improving the harness.

    Also in 5 projects that use this

  • naman10parikhSkill

    fractal-delegation

    Also in 5 projects that use this

  • KirchliveSkill

    skill-routing

    Decides which of the installed skills a task needs and loads them before the work starts. This skill should be used at the beginning of any multi-step task — build, fix, refactor, migrate, review, plan, release, research, write, design, video — and again at every phase change, after context compaction, and when work moves into a different part of the codebase. Use it for requests like "let's build X", "fix this bug", "refactor Y", "plan the migration", "review this", and also when the user asks which skill applies, why a skill did not fire, or asks to check what is available.

    Also in 5 projects that use this

  • GoZippySkill

    repo-scout

    Also in 5 projects that use this

  • BenjaminGSkill

    harness-review

    Turn one PR's review comments into harness fixes — classify each cause by the most solid place it can live (codebase, lint, rules, skill), then draft the fixes in a separate PR.

    Also in 5 projects that use this

  • botirkhaltaevSkill

    design-systems

    Build and maintain scalable design systems: design tokens, component libraries, naming conventions, governance, and design-to-code pipelines. Covers Figma variables, token architecture, atomic design, component APIs, versioning, and team workflows. Use when creating a design system, scaling an existing one, or establishing design-engineering alignment. Triggers on: "design system", "design tokens", "component library", "token naming", "Figma variables", "atomic design", "design ops", "design-to-code".

    Also in 5 projects that use this

  • +6 more from naman10parikh

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 6

    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:

    Prefer spawning the role as a subagent over adopting it in-session.

    line 17
  2. Distinctive:

    Read the role file before acting as one.

    line 24
  3. Distinctive:

    Commit with git directly. Conventional Commits, types per AGENTS.md.

    line 52
  4. Distinctive:

    Commit only files your role owns (see below).

    line 57
  5. Distinctive:

    When genuinely blocked: say you are blocked in one sentence, summarise what is done, state what remains, and ask one question.

    line 79
  6. Very specific:

    Use the run-dotnet-tests skill.

    line 84
  7. Very specific:

    Test naming: MethodName_Scenario_ExpectedResult.

    line 87
  8. Very specific:

    Every role appends an entry to <work-item>/work-protocol.md after completing its work and before handing off:

    line 92
  9. Distinctive:

    When handing off, state what you completed, which files you touched, and the specific next action for the receiving role.

    line 140

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

Agent Runtime

Conventions every role obeys. Role files under .agents/roles/ state only what is specific to their role and defer everything here. AGENTS.md carries the project-wide coding, commit and terminal rules; this skill covers how a role operates.

This is also the only file that needs to change to support a second harness.

Running as a role

Prefer spawning the role as a subagent over adopting it in-session. The isolated context is the main reason this workflow is affordable: a stage's file reads, test output and search results never enter the parent thread.

Adopt a role in-session only when you need its output in your working context to continue immediately.

Read the role file before acting as one. Do not improvise a role's boundaries — they exist to keep artifact ownership clean, and the work-protocol gate checks that the right roles ran.

Model tiers

.agents/tiers.json is the single source of truth. Role files declare tier:, never a model name.

TierClaudeCodex
deepopusgpt-5.6-sol
standardsonnetgpt-5.6-terra
cheaphaikugpt-5.6-luna

Codex needs the full model slug. Bare sol / terra / luna are rejected by the API ("not supported when using Codex with a ChatGPT account").

Escalation: on rework attempt 2 or later, run the role one tier deeper. Cheap models get first crack; expensive ones only see the cases that failed once.

Delegate to the cheap tier for work whose output you do not need verbatim: codebase search, "does this file exist", build and test runs where only pass/fail matters. Do not delegate single file reads or one grep — the spawn costs more than the call.

Committing

Commit with git directly. Conventional Commits, types per AGENTS.md.

  • Commit before handing off. The next role must see complete work.
  • Amend, don't stack fixups. To correct work you just committed, use git commit --amend. Never create a "fix the previous commit" commit.
  • Commit only files your role owns (see below).

Asking

The workflow runs unattended. There are exactly three gates — specification approval, a genuinely contested architecture choice, and UAT for user-visible output changes. They are defined in docs/workflow.md.

Away from a gate, do not block. Record the question and the assumption you are proceeding on in state.json → open_questions, then continue:

scripts/wp-append.sh --question "Should X do Y?" --assumed "Yes, matching Z"

The accumulated list surfaces at the next gate and in the PR description. This is a deliberate inversion of the old "ask one question at a time and wait" rule, which made unattended runs impossible.

At a gate, ask one question at a time and wait. If you offer alternatives, give pros and cons and a recommendation with its reason.

When genuinely blocked: say you are blocked in one sentence, summarise what is done, state what remains, and ask one question.

Running tests

Use the run-dotnet-tests skill. Never call dotnet test directly — .NET 10 has two test runners and a direct call from the repo root fails with MSB1001.

Test naming: MethodName_Scenario_ExpectedResult. TUnit is the only test framework in this project.

Work protocol

Every role appends an entry to <work-item>/work-protocol.md after completing its work and before handing off:

scripts/wp-append.sh --role "Developer" \
  --summary "..." --artifacts "..." --problems "None"

Record problems honestly — the Retrospective reads them, and a problem that was never logged cannot be fixed. scripts/workflow-gate.sh blocks release when a required role has no entry.

Artifact ownership

Each artifact has exactly one owning role. Do not edit another role's artifacts; hand back instead.

ArtifactOwner
src/, src/tests/Developer
docs/, README.md (global docs)Technical Writer
docs/workflow.md, AGENTS.mdWorkflow Engineer
specification.mdRequirements Engineer
analysis.mdIssue Analyst
architecture.md, docs/adr-*.mdArchitect
test-plan.md, uat-test-plan.mdQuality Engineer
tasks.mdTask Planner
code-review.mdCode Reviewer
uat-plan.json, uat-plan.mdDeveloper (to the Quality Engineer's specification)
uat-report.mdUAT Tester
UAT PRs and their commentsUAT Tester
release-notes.md, the PR, the releaseRelease Manager
retrospective.mdRetrospective
.agents/, AGENTS.md, scripts/ workflow toolingWorkflow Engineer
website/src/Web Designer

work-protocol.md is append-only, and only through scripts/wp-append.sh.

state.json belongs to the driver. Roles never write stage, status or gates.* directly — a role that could write a gate field could clear a rejection the Maintainer had already made. The one field a role sets is arch_contested, and only the Architect sets it.

Reporting

End a turn with what changed, what is next, and what you need — or "Nothing" if unblocked. Keep it short; the work-protocol entry is the durable record, not the chat.

When handing off, state what you completed, which files you touched, and the specific next action for the receiving role.

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.