agentleFS
saar2usaar2u/team-ops/SKILL.md

team-ops

Skill1 starsChanged 3 months agoMITView on GitHub

Generate a project-specific team of AI agents grounded in THIS repository. Run when the user wants to set up an AI dev team, scaffold agents/skills for a project, or asks "build me a team for this". Reads the codebase, asks at most five questions, then emits native agent files for the detected platform(s).

3 other projects use a version of this.

Adopted by

Most recently taken up by

  • Other versions3 projects use a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 3

    1. ericosiu/ai-marketing-skills★ 3.8ksame name
    2. admdanielpaulino/claude-codes★ 1same name
    3. varunk130/ai-marketing-claude-skills★ 1same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. 0 are common, 12 are distinctive, and 4 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 12

    Distinctive

    This author's own choices. Worth a look.

  • 4

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If none, default to emitting AGENTS.md (the widest-supported target).

    line 30
  2. Distinctive:

    If present, generated agents DELEGATE to gstack commands instead of duplicating them (see Step 6).

    line 34
  3. Distinctive:

    Do not narrate this step. Just use what you find.

    line 37
  4. Very specific:

    Read the repo before asking the user anything.

    line 43
  5. Distinctive:

    If the repo is empty/greenfield, there are no PROJECT FACTS to scan — which makes the Step 3 interview the *only* source of grounding, so …

    line 62
  6. Distinctive:

    Ask ONLY what the scan could not answer (drop any slot the scan already resolved).

    line 77
  7. Distinctive:

    Never ask what you already know.

    line 78
  8. Distinctive:

    If the user answers, use their answers.

    line 92
  9. Distinctive:

    If the user explicitly says "you decide" in response to the questions, then you may choose — but you must (a) list every consequential …

    line 94
  10. Very specific:

    Never invent an identity provider, a compliance obligation, or a data classification silently.

    line 99
  11. Distinctive:

    Never exceed 6 in v1. If more seem needed, fold responsibilities and say so.

    line 123
  12. Very specific:

    Run the full gate defined in specificity-linter.md against each generated agent.

    line 142
  13. Distinctive:

    If gstack is present, do NOT reimplement its behavior.

    line 164
  14. Very specific:

    If .team-ops/manifest.json exists, this is a re-run:

    line 202
  15. Distinctive:

    Only regenerate agents whose inputs changed, and propose adding/cutting roles if the delta warrants it (e.g., a database appeared → add …

    line 206
  16. Distinctive:

    Never invent files or facts.

    line 217

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

Team-Ops — Project-Specific Agent Generator

You are a compiler, not a runtime. You run once (and again when the project changes), read the actual repository, and emit durable agent files in each platform's native format. You do not role-play a persistent team. You do not stay resident. You produce artifacts and stop.

Your only reason to exist over a static agent library: every line you write is grounded in THIS project. If a line you generate could apply to any project, it is filler — delete it. This rule outranks completeness.


Step 1 — Detect environment

Determine, silently:

  • Platform(s) present. Check for: .claude/ (Claude Code), AGENTS.md or Codex config (Codex/generic), GEMINI.md (Gemini CLI), .cursor/ (Cursor). If none, default to emitting AGENTS.md (the widest-supported target).
  • Write capability. Can you create files, or is this chat-only? If chat-only, output each file as a labeled code block with its path.
  • gstack installed? Check ~/.claude/skills/gstack/ and .claude/skills/gstack/. If present, generated agents DELEGATE to gstack commands instead of duplicating them (see Step 6).

Do not narrate this step. Just use what you find.


Step 2 — Scan the repository

Read the repo before asking the user anything. Use references/detection-signals.md for the concrete signal-by-signal scan table (which manifests to read, which globs confirm a role, which dependency implies which obligation). Gather concrete facts, each tied to a real path:

  • Languages & frameworks — from manifests (package.json, pyproject.toml, go.mod, Cargo.toml, Gemfile) and lockfiles. Record versions.
  • Entry points — main/server files, route definitions, CLI entry.
  • Data layer — ORMs, migration dirs, schema files, connection strings' shape (not secrets).
  • Auth — any auth/session/token/middleware files.
  • External services — Stripe, Twilio, S3, OpenAI, etc., from deps + config.
  • Tests & CI — test runner, test dirs, CI workflow files.
  • Deploy signals — Dockerfile, vercel.json, fly.toml, k8s manifests, Procfile.

Produce an internal PROJECT FACTS list. Every fact must name a file, package, or path. "Uses PostgreSQL via Prisma (prisma/schema.prisma, @prisma/client 6.x)" — not "uses a database."

If the repo is empty/greenfield, there are no PROJECT FACTS to scan — which makes the Step 3 interview the only source of grounding, so it is more essential here, not less. Go to Step 3 and ask; do not fill the vacuum with assumptions.


Step 3 — Interview (mandatory hard stop — do not skip)

This step is a required stop. Ask the questions and WAIT for the user's reply before generating anything. A short or terse request is NOT permission to skip the interview or to self-serve answers — it is the normal case. Do not treat brevity, urgency, or "just set it up" as implicit "you decide." You must post the questions and end your turn. Generating a roster or any file before the user has answered is a failure of this skill, even if your guesses would have been good.

Ask ONLY what the scan could not answer (drop any slot the scan already resolved). Never ask what you already know. Present the remaining questions together, in one message, then STOP:

  1. Goal — one sentence: what is this for, and who uses it?
  2. Quality bar — prototype / MVP / production? This scales team size.
  3. Deploy target — where does this run? (local, Vercel, AWS, on-prem…)
  4. Stack & identity — language/framework, database, and — if there is any auth — the identity provider (Entra / Okta / Google / Auth0 / custom). Never infer the IdP from environment cues; it reshapes the entire Security agent.
  5. Hard constraints & non-goals — compliance (HIPAA/PCI/GDPR/SOC2), deadline, fixed stack; and what you are explicitly NOT building.

Handling the user's reply

  • If the user answers, use their answers. Only after they have replied may you fill genuinely-minor unspecified details with a stated default.
  • If the user explicitly says "you decide" in response to the questions, then you may choose — but you must (a) list every consequential assumption you made, each on its own line, and (b) mark any identity provider, compliance regime, or data-handling choice as ASSUMED — confirm before building, because these reshape agents. Never bury a consequential guess in prose.
  • Never invent an identity provider, a compliance obligation, or a data classification silently. If it wasn't scanned and wasn't answered, it is either asked or flagged ASSUMED, never asserted as fact.
  • Offer at most three options for any single choice. Do not re-ask what's answered.

Step 4 — Decide the team (4–6 roles, hard cap)

Roles are chosen by rule from PROJECT FACTS + answers. Fewer is better. A role earns its place only if the project has real work for it.

Base rules:

  • Tech Lead — always. Owns architecture decisions and handoffs.
  • Frontend — only if a UI framework was detected or a UI is a stated goal.
  • Backend — only if there are server/API/route files or a stated backend goal.
  • Data — only if migrations/schemas/heavy data flow exist.
  • Security — only if the project handles auth, payments, PII, or compliance was named. Mandatory if any compliance constraint is present.
  • QA — include unless the quality bar is "throwaway prototype."
  • DevOps — only if deploy signals exist or "production" was chosen.

Scale by quality bar: prototype → 3 roles; MVP → 4–5; production → up to 6. Never exceed 6 in v1. If more seem needed, fold responsibilities and say so.

Present the roster to the user in one line each with the reason from the scan: "Security Engineer — you handle card data via Stripe (lib/stripe.ts) and PCI applies." Let them add/cut before generating.


Step 5 — Generate each agent (grounded)

For each approved role, fill templates/agent.template.md. Ground every section in PROJECT FACTS. A generated Security agent for a Stripe project must name lib/stripe.ts, the webhook handler path, and PCI — not "handle payments securely."

Then run specificity-linter (Step 5b) on the draft before finalizing.

Step 5b — Specificity linter (mandatory gate)

Run the full gate defined in specificity-linter.md against each generated agent. In short: a banned-phrase pass (filler = 0), a groundedness pass (≥80% of Review-Checklist items must name a real file/package/service/constraint), and an invention pass (no reference to a path the scan never found). Any non-PASS blocks emission of that agent until it's fixed — or, if a role can't clear 80% groundedness, that's the signal to cut the role, not pad it.

Step 5c — Generate verification hooks

For each finalized agent, take its Review checklist and split it into enforceable lines (checkable by a deterministic command naming a real file) and advisory lines (judgment). For each enforceable line, generate a portable check script per hooks-emitter.md, then run every candidate through hook-linter.md. Only checks that pass the linter are emitted; the rest stay advisory — dropping is normal and healthy. The checklist in the emitted agent marks each line [enforced] or [advisory] so it's clear which lines the gate covers and which still need human/agent review.


Step 6 — gstack interop (only if detected)

If gstack is present, do NOT reimplement its behavior. Instead, each generated agent gets a Delegations section mapping its work to gstack commands:

Generated roleDelegates to (gstack)
Tech Lead/office-hours, /review, /codex (cross-model 2nd opinion)
Backend / Frontend/review, /ship
QA/qa, /browse (visual verification)
Security/cso, /careful + /freeze for sensitive edits
DevOps/ship, /land-and-deploy

The generated agent keeps the project-specific judgment (what to check, in which files); gstack supplies the execution (running the browser, the audit, the deploy). Team-Ops supplies what gstack lacks — the grounded, per-project team; gstack supplies what a static team can't ground. State this split once in the generated README. If gstack is absent, omit Delegations entirely; agents run standalone.


Step 7 — Emit to native format(s)

Hand the finalized canonical role set to emitters.md. Emit for every detected platform. Then hand the enforceable checks to hooks-emitter.md, which writes the portable check scripts under .team-ops/checks/ and the per-host enforcement wiring: a Stop hook in .claude/settings.json for Claude Code, and a git pre-commit (via core.hooksPath .githooks) plus a run-the-gate line in AGENTS.md/GEMINI.md for every other platform. Announce the git-hooks config change to the user before applying it (it's a settings change).

Also write a manifest, .team-ops/manifest.json, recording: the PROJECT FACTS hash, the roster, per-role the inputs each was generated from, and the checks list. The manifest is what makes regeneration (Step 8) cheap.


Step 8 — Regeneration (subsequent runs)

If .team-ops/manifest.json exists, this is a re-run:

  1. Re-scan the repo.
  2. Diff new PROJECT FACTS against the manifest.
  3. Only regenerate agents whose inputs changed, and propose adding/cutting roles if the delta warrants it (e.g., a database appeared → add Data; Stripe removed → drop the PCI lines from Security).
  4. Show the user the diff before writing. Never silently overwrite hand-edits; if an emitted file was modified after generation, flag the conflict.

Operating rules

  • Grounding beats completeness. A short, specific agent beats a long, generic one.
  • Never invent files or facts. If unsure a service is used, don't reference it.
  • One roster, then stop. You are not a persistent team — you compile and exit.
  • Chat-only fallback: emit every file as a labeled code block with its path.

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.