agentleFS
zzgiabaozzbuizzgiabaozzbui/athena-starter/skills/routing/SKILL.md

routing

Skill1 starsChanged 30 days agoMITView on GitHub

Route the first message of a session and every new request mid-session (implementation, Q&A, research, review), including multi-step features and mock/demo screens in a real app; also use when the user asks about flows or agents.

  • Reads credentials

22 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use parallelization, prompt-chaining and 2 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.
  • hajekimSkill

    parallelization

    This skill should be used when the user wants to "run tasks in parallel", "concurrent LLM calls", "fan-out and fan-in", "parallel agents", "simultaneous execution", "reduce latency with concurrency", "parallel sub-tasks", "parallel processing", "concurrent agent execution", "run agents simultaneously", "speed up with parallelism", "async agent execution", "batch LLM calls", "parallel workflow", "parallelize agent tasks", or needs to execute multiple independent tasks simultaneously. Also responds to Korean: "병렬 작업 실행", "동시 LLM 호출", "팬아웃 팬인 패턴", "병렬 에이전트", "동시 실행", "동시성으로 지연 시간 감소", "병렬로 실행", "동시에 여러 작업", "병렬 처리", "동시에 돌려줘", "빠르게 병렬로", "여러 작업 동시 실행해줘". Also responds to Japanese: "並列処理", "同時実行", "並列エージェント", "並行LLM呼び出し", "ファンアウト・ファンイン", "複数タスクを同時に実行したい", "処理速度を上げたい", "非同期エージェント", "バッチ処理", "並列で動かしたい" Also responds to Chinese: "并行处理", "并发执行", "并行智能体", "同时调用多个LLM", "扇出扇入模式", "多任务并行运行", "加快处理速度", "异步智能体", "批量LLM调用", "同时运行多个任务".. Apply this skill to design or implement the Parallelization agentic design pattern.

    Also in 3 projects that use this

  • hajekimSkill

    prompt-chaining

    This skill should be used when the user wants to "chain prompts", "build a pipeline", "break down complex tasks into steps", "sequential LLM calls", "multi-step reasoning", "pipeline pattern", "sequential agent pipeline", "multi-step prompt pipeline", "LLM chain", "step-by-step agent", "prompt pipeline", "decompose task into prompts", "stage-by-stage processing", "chained LLM calls", or when a task is too complex for a single prompt and needs to be decomposed into sequential sub-tasks. Also responds to Korean: "프롬프트 체이닝", "체인 방식 에이전트", "단계별 LLM 호출", "복잡한 작업 분해", "순차적 프롬프트 파이프라인", "단계적 작업 처리", "단계별 처리", "순차 처리 에이전트", "파이프라인 만들어줘", "단계적으로 처리해줘", "연속 프롬프트", "체이닝 해줘". Also responds to Japanese: "プロンプトチェーニング", "ステップごとに処理", "順次LLM呼び出し", "パイプライン構築", "複雑なタスクを分解", "段階的エージェント", "連続プロンプト", "LLMパイプライン", "順番に処理してほしい", "チェーン方式エージェント" Also responds to Chinese: "提示词链", "顺序调用LLM", "构建流水线", "分解复杂任务", "逐步处理", "链式提示", "多步骤流水线", "按顺序处理任务", "提示词管道", "帮我一步一步处理".. Apply this skill to design, implement, or explain the Prompt Chaining agentic design pattern.

    Also in 3 projects that use this

  • klauswgSkill

    performance

    Optimize web performance for faster loading and better user experience. Use when asked to "speed up my site", "optimize performance", "reduce load time", "fix slow loading", "improve page speed", or "performance audit".

    Also in 3 projects that use this

  • NVIDIASkill

    testing

    Run Python and Rust tests for physicsnemo-curator using uv + pytest with coverage reporting via pytest-cov, and cargo-nextest for Rust tests. Includes benchmark workflows with pytest-benchmark and criterion.

    Also in 5 projects that use this

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.

  • 0

    Common

    Most of the 20 edited versions we read keep these.

  • 2

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

    Run routing on every new request, also mid-session (what counts as new: references/flow-question.md › Switching flows).

    line 8
  2. Very specific:

    After a flow is chosen, before dispatching the developer agent, calling the project's stack guide or running the project's verify command, …

    line 13
  3. Distinctive:

    When several rows match, the row with the highest level is the recommendation.

    line 94
  4. Very specific:

    No question asked → first line of the answer: Flow: #N.

    line 130
  5. Distinctive:

    No row matches → still ask per §2 (options = the nearest rows).

    line 131

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

Request routing

Run routing on every new request, also mid-session (what counts as new: references/flow-question.md › Switching flows). A new request that names no flow gets the flow question (§2) before any repo exploration. A message that already names its flow (Flow: #N, a flow name, the developer agent, a slash command), a Q&A (#1) or research (#2) that edits no file, a small mechanical job, or a greeting: do not ask; print Flow: #N (§4) and work. If #1 / #2 turns into a file edit, ask the flow question first.

This skill is a map, not a source of rules: each reference keeps only the order of steps and where to call skills. A skill's content lives in its own SKILL.md.

After a flow is chosen, before dispatching the developer agent, calling the project's stack guide or running the project's verify command, open references/project-context.md. researcher, quick-fix and reviewers do not need this step.

1 · Place the request

Done when there is one recommended flow plus at most 3 runners-up.

R-115 · Pick the smallest workflow that keeps the required checks

Pick the workflow with the fewest steps that still has the mandatory verification. Does not apply to HIGH/CRITICAL (R-117). Q&A, lookups, clarifying a request, small text edits: no full workflow.

Main flows — idea to delivery

#CaseSignalsLevel (R-117)Open
4Vague requestunclear what to do or where-references/clarify.md
17Large one-sided featureone side (backend, frontend, or docs/config), splits into 2+ tasks each with its own diff and check commandby contentreferences/plan.md › One side
18Feature across backend + frontendcontract change, new field reaching the UIby contentreferences/plan.md › Both sides
23Code review"review", "look at the diff"-references/review-commit.md › Review
24Commit / push / merge"commit", "push", "open a PR", "tag", "release"-Skill tool with commit-push

User approval points: scope (4) · spec if any, plan (17/18) · after review, before commit (23 to 24). While a plan runs (subagent-driven-development or executing-plans), approving the plan replaces approving each commit (R-015). Boundaries between steps decide context handling: references/phase-boundaries.md.

Spawned flows — one job creates another, then joins a main flow

#CaseSignalsLevelOpen
3Production incident"prod is down", "users report", "outage"by the fixreferences/qa-research.md › Incident
6Bug fix"bug", "wrong", "not working", stack traceby contentreferences/small-changes.md › Bug fix
9New CRUD module"add an admin screen for X", new table + new permissionHIGHreferences/high-risk.md › New module
10Schema / migrationsstored procedure, table, column, index, migrationHIGHreferences/high-risk.md › Schema
11Writing project database data"update the records", "delete the data"real INSERT/UPDATE = HIGH · broad DELETE or personal data = CRITICALreferences/high-risk.md › Data
12Auth / permissions / rolespermission, role, claim, JWT, 403CRITICALreferences/high-risk.md › Permissions
13Public endpointendpoint without login, public lookupCRITICALreferences/high-risk.md › Public
14Shared configenvironment config files (.env, app settings), DockerfileHIGHreferences/high-risk.md › Config

Small jobs — one session, no plan

#CaseSignalsLevelOpen
5Typo / format / rename"fix the typo", "rename the variable", "format"LOWreferences/small-changes.md › Mechanical
7Routine code (backend / service / script)add a field, endpoint or helper on existing tables and permissionsMEDIUMreferences/backend.md › Routine CRUD
8Write tests"write a test", "test the endpoint", "test for function X", "e2e", "Playwright"LOWbackend: references/backend.md › Tests · frontend: Skill tool with e2e-playwright
15UI change"screen", "component", "layout is off", frontend code; identify the stack from the files to edit before choosing a dev agentLOW-CRITICALreferences/frontend.md › UI

Standalone

#CaseSignalsLevelOpen
1Q&A / lookup"where", "what is", "why", no edit requested-references/qa-research.md › Lookup
2Multi-file research"analyze", "investigate", "compare", "map"-references/qa-research.md › Research
16Mockup / prototype"mockup", "sketch the UI", "demo UI", "try the logic", "spike", "prototype the flow"-references/frontend.md › Mockup
19Docs / domain knowledgeprocess, domain, docs/LOWreferences/docs.md
25Resolve conflictsgit reports CONFLICT, mid merge/rebaseby contentSkill tool with resolving-merge-conflicts
27Modernization / large migration"upgrade the runtime", "rewrite in", "migrate the whole system"HIGHSkill tool with migrating-legacy-code
30Plan / agent progress"open observatory", "show plan progress", "how far is the agent"-Optional plugin athena-observatory (skill observatory); not installed: tell the user to run /plugin install athena-observatory@athena. Progress of one specific plan: read its progress.md like #1
31Domain terms / hard-to-reverse decisions"glossary", "how do X and Y differ", a word with two meanings, "record why we chose", "ADR", pasted meeting notes with decisions-Skill tool with domain-modeling
33Architecture / C4 / modeling a legacy system"C4", "overall architecture", "big picture", "draw the system", "model the old system", external integration-Skill tool with architecture
34Security testing"test permissions", "IDOR", "security test", "audit dependencies", "scan libraries for vulnerabilities"by contentSkill tool with security-testing; writing backend tests: dispatch the developer agent per references/backend.md › Tests
35Create / edit a project roadmap"make a roadmap", "project goal", "work items", "assign a mission to an item", "backfill the roadmap"LOWSkill tool with docs-standards, open its roadmap.md › Create and backfill

#16 is only for a mockup or prototype made to look at or throw away, outside the product frontend code. Finishing a mock/demo screen inside the real app is frontend implementation; if it splits into 2+ tasks (test 7 / 15 ↔ 17), consider #17 before #16. The word "mock" or "demo" alone is not enough to choose #16.

Boundaries — two nearby rows

PairTest
1 ↔ 2Can it be answered after 3 file reads or fewer? No → 2
1 ↔ 11Does it write or delete database data? Yes → 11 · Read-only → 1
5 ↔ 6Does behavior change? Yes → 6
7 ↔ 9A new table or new permission? Yes → 9
17 ↔ 18Does the API contract change? Yes → 18
7 / 15 ↔ 17Splits into 2+ tasks each with its own diff and check, or HIGH / CRITICAL, needs plan approval? Yes → 17 · No → 7 / 15
6 ↔ 12Does the fix touch auth / permissions / claims? Yes → 12, even for a one-line diff
3 ↔ 6Affecting real users in production? Yes → 3 · No → 6
9 ↔ 15New screen with a new table or permission? Yes → 9 · UI over an existing API only → 15
17 ↔ 33Still editing code after drawing? Yes → 17 (brainstorming calls architecture) · Only drawing / modeling → 33
2 ↔ 33Need a C4 diagram or contract table? Yes → 33 · Only reading and answering → 2
8 ↔ 34Test checks permissions, data scope or dependency vulnerabilities? Yes → 34 · Otherwise → 8
12 ↔ 34Editing auth / permission / claim code? Yes → 12 (tests follow security-testing inside that flow) · Only writing tests or running an audit → 34
1 ↔ 35Only asking how far the project is? Yes → 1 (references/qa-research.md › Project overview) · Writing or editing roadmap.json → 35

When several rows match, the row with the highest level is the recommendation; level follows content (R-117).

Common rationalizations

ThoughtReality
"The user says it's urgent / the boss approved, skip the question"Urgency does not change risk; still ask, unless the user named the flow
"The request is clear, just do it"A clear request is not a chosen flow; skip the question only when the message names a flow, is Q&A / research without file edits, is a small mechanical job, or is a greeting
"Read the repo a bit first so the question is better"No answer yet means no repo reading and no edits; ask from the message and the tables
"Asked, so wait for the next turn"When the question tool answers in the same turn, continue; only a numbered list waits for the next turn
"Only a review, no flow question"Reviews still ask; skip only in the cases above
"Long task, just start task 1"Multi-step work gets plan.md + progress.md committed before task 1 (docs-standards › style.md › Long sessions)

2 · Ask

No answer means no repo reading and no edits. The question tool (AskUserQuestion) answers in the same turn → continue with the chosen flow. A harness without a question tool → numbered list 1-4 plus "Type a number to choose.", end the turn.

One question, header Flow, 2-4 options from the tables:

  • question restates the request in one sentence so the user can catch a misreading.
  • The recommended row goes first, label "<name> · #N (Recommended)"; the rest are the next-best matches. No "Other" option: the tool has its own text box.
  • description: what will be done, the risk level, whether a plan approval is awaited.

Labels, examples: references/flow-question.md.

Done when the user answered (question tool in-turn, or the next message for a numbered list).

3 · Follow the choice

Open the reference in the "Open" column (one flow, one reference), plus project-context.md at steps that depend on the stack and any extra reference that reference or this section names. A reference that says to call skill X → call the Skill tool with X and follow X's SKILL.md, not the summary in the reference. Free-text answers → follow the text, still open the best-matching reference. Phase changes only when the user asks (R-115). A flow that edits files → write intent.md before touching a file (R-092, R-002), even for LOW. #17 and #18 with a frontend part: after references/plan.md, also open references/frontend.md › UI for the frontend gate.

Done when the reference is open (or the skill in the "Open" column is called). A skill that a reference names is called when that step is reached, by whoever does that step. When dispatching a dev agent: a skill the agent does not load itself goes by name in the dispatch prompt.

4 · The Flow: line

  • No question asked → first line of the answer: Flow: #N. Greeting → print nothing.
  • No row matches → still ask per §2 (options = the nearest rows).
  • Free-text answer without #N, or a flow change mid-session: references/flow-question.md.

The #N numbers in the §1 tables are permanent, like R-NNN codes: a new row takes the highest number + 1; a removed row leaves its number unused; never renumber. Gaps in the numbering (20-22, 26, 28, 29, 32) are intentional.

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.