add_smart_capability
Skill1 starsChanged 46 days agoMITView on GitHub
add-smart-capability extends a smart tool that already exists: an agent reads the tool, implements one model-backed capability in its library, exposes it from the CLI, writes the tests and the docs, then runs the tool's own checks (uv run pytest, the conformance kit, and prek run --all-files when prek is installed) and fixes what they report. Nothing is committed; the working tree is left for you to review. - REQUEST: the whole brief for one capability: what it does, for…
In this repository5 other files it gives its agents.
- AGENTS.mdAGENTS.md
- smart-tool-creatorSkill
- check_conformanceSkill
- check_spec_adherenceSkill
- initSkill
The file
Files
add-smart-capability extends a smart tool that already exists: an agent reads the tool,
implements one model-backed capability in its library, exposes it from the CLI, writes the
tests and the docs, then runs the tool's own checks (uv run pytest, the conformance kit,
and prek run --all-files when prek is installed) and fixes what they report. Nothing is
committed; the working tree is left for you to review.
smart-tool-creator add-smart-capability \
"Given an incident id, fetch its chat transcript and alert timeline from the incident platform and draft a blameless postmortem: summary, impact, contributing factors, and action items with owners" \
--directory ~/src/incident-postmortem \
--context "The platform client is src/incident_postmortem/platform.py; fetch through it, never call the API directly" \
--context "Our postmortem template is at ~/notes/postmortem-template.md; match its headings"from pathlib import Path
from smart_tool_creator.lib import add_smart_capability
added = add_smart_capability(
"Given an incident id, fetch its chat transcript and alert timeline from the incident platform "
"and draft a blameless postmortem: summary, impact, contributing factors, and action items with owners",
directory=Path("~/src/incident-postmortem").expanduser(),
context=[
"The platform client is src/incident_postmortem/platform.py; fetch through it, never call the API directly",
"Our postmortem template is at ~/notes/postmortem-template.md; match its headings",
],
)
added.report, added.checks, added.fix_rounds, added.output_messageArguments
REQUEST: the whole brief for one capability: what it does, for whom, and what it takes in and gives back. Required.--directory PATH: the smart tool to work in; the current directory when omitted. It must hold asmart-tool.jsonat its root, and no parent is searched, so a workspace holding several tools is never extended by accident. It must also have anIntelligenceinterface atsrc/<package>/intelligence/interface.pyfor the capability to run through, which a tool scaffolded with--no-agent-providersdoes not.--context TEXT: repeatable free text, usually paths to notes, transcripts, or exemplars the agent should read before it designs anything. It reads the paths itself, so name them rather than pasting their contents.--agent-provider: what the agent runs through,{{ agent_providers | join: "or" }}. The first installed, in that order, when omitted.--model: the model the agent runs on: a Copilot model id forcopilot,<provider>/<model>foramplifier-agent(for instance{{ default_intelligence_models["amplifier-agent"] }}), a Codex model id forcodex, a Claude model id forclaude. Defaults to{{ default_intelligence_models.copilot }}oncopilot,{{ default_intelligence_models["amplifier-agent"] }}onamplifier-agent,{{ default_intelligence_models.codex }}oncodex, and{{ default_intelligence_models.claude }}onclaude.--reasoning-effort: how hard the model thinks before it acts, one oflow,medium,high,xhigh,max. Defaults to{{ default_intelligence_reasoning_effort }}. Applies to thecopilot,codex, andclaudeagent providers.intelligence, library only: theIntelligenceimplementation the agent runs through, which wins overagent_provider;resolve_intelligence(agent_provider)when omitted. Tests inject a fake.
Result
AddedCapability carries root, the extended tool's distribution root; report, the
agent's final message, which names the capability, the files it touched, the command to try
it, and its caveats; checks, one entry per check with its name, command, status
(passed, failed, or skipped), and the tail of its output when it failed or the reason
when it was skipped; fix_rounds, the extra agent runs spent on failing checks, at most 2;
and output_message, all of that for the calling agent, which is what the CLI prints.
The prek check is skipped, never failed, when the tool has no .pre-commit-config.yaml or
prek is not on PATH; the conformance check is skipped when the kit itself could not run,
and names the failing rules when it fails. A check still failing when the work stops is returned rather than
raised and named in the message, and the CLI exits 1; the work stays in the tool's working
tree either way, and what it is worth is the caller's call.
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.

