agent
Skill4 starsChanged 2 months agoMITView on GitHub
Create an internal agent — a typed wrapper over the one-method AgentRunner seam that turns a business intention into ONE provider-CLI run. Use when a feature needs an LLM/coding-agent turn (classify an inbound message, work an issue). Dispatch hub — routes to the typescript variant by file extension.
Files
Agent
An agent is the citizen that owns "what do we ask the model, and what do we let it do". It is
not a service and not a use case: a service has no model, and a use case orchestrates a transaction.
An agent translates one business intention into exactly one AgentRunner.run() request and declares
the tool scope that run may act through.
Three things belong to an agent and nothing else:
- the input contract — a schema built with
z.agentInput({...}), so the run envelope (ownerId/threadId/cwd, andissueIdwhere one exists) is inherited rather than retyped; - the prompt — a
@injectable()prompt builder in its ownprompt.ts, so the day the prompt needs a repository read, the agent's shape does not change; - the tool scope —
tools, the closed list ofcodm__*tools this run may call. Empty scope means the run declares nothing and carries no MCP config at all.
Four things explicitly do NOT: routing/threshold/fallback policy (that is a service — see
IssueRouter), the transaction (a use case), transport (the runner), and identity resolution (the
base class stamps it; there is no name→agent map).
The one rule that generates most of the others
Agent.run() is a concrete template method on the base. The single point of variation is
protected abstract buildRequest(input). An agent that overrides run() re-opens a second place to
mint a run token, which is why the token can be proven to be minted in exactly one file.
An agent with an outputSchema may expose exactly one public method, named for the business
purpose, whose body is return this.collect(input) — nothing more. An agent without an
outputSchema exposes nothing beyond the inherited run().
Language variants
| Backend | Playbook | Registry |
TypeScript — packages/api/typescript/ | typescript/SKILL.md | typescript/registry.yaml |
There is no Go variant: the agent runtime is TS-owned (the Go side runs the channel gateway and owns no provider-CLI process).
How dispatch works
scripts/review.ts classifies any file under agents/** as the agent artifact and loads
agent/typescript/registry.yaml. Scaffold with bun cli agent <context> <Name>.
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- atopile/atopile★ 4ksame name
- kstonekuan/webskills★ 8same name
- urmzd/saige★ 6same name
- aihu-project/aihu★ 4same name
- venom444556/StoryFlow★ 4same name
- anthonymaley/Kerd★ 3same name
- SprintsAI/lightsprint-claude-code-plugin★ 2same name
- lyoneel/ly-agent-skills★ 0same 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.
In this repository45 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- bounded-contextSkill
- clean-branchSkill
- commitSkill
- componentSkill
- controllerSkill
- db-modellingSkill
- ddd-modelingSkill
- ddd-specSkill
- design-systemSkill
- desktop-shellSkill
- e2eSkill
- entitySkill
- enumSkill
- errorsSkill
- eventSkill
- formSkill
- grill-with-docsSkill
- handlerSkill
- handoffSkill
- middlewareSkill
- migrateSkill
- prdSkill
- primitiveSkill
- projectionSkill
- projectorSkill
- querySkill
- repositorySkill
- reviewSkill
- routeSkill
- saas-researchSkill
- schedulerSkill
- schemaSkill
- sdkSkill
- serviceSkill
- spec-reviewSkill
- storeSkill
- storybookSkill
- task-breakdownSkill
- testSkill
- trace-analysisSkill
- ui-compositionSkill
- usecaseSkill
- user-storiesSkill
- value-objectSkill
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
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.

