Specify an autonomous or tool-using AI agent before building it.

MITAuto-check passedAI & LLM Engineering

Install Agent Spec

skills CLI
$ npx skills add mohitagw15856/pm-claude-skills --skill agent-spec -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install mohitagw15856/pm-claude-skills agent-spec --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/mohitagw15856/pm-claude-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/agent-spec .claude/skills/agent-spec && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-spec
GitHub stars
1.4k
Token cost
~1.1k tokens
SKILL.md length
542 words
Files
1
Skills in repo
1,348
Repo updated
First seen
Licence
MIT

At a glance

Specify an autonomous or tool-using AI agent before building it.

  • Asked to design an AI agent
  • SKILL.md covers Required Inputs, Output Format, Quality Checks and Anti-Patterns, plus 2 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Define an agents tools and guardrails

What it does

Agent Spec is an agent skill from mohitagw15856/pm-claude-skills. Specify an autonomous or tool-using AI agent before building it. Use when asked to design an AI agent, define an agent's tools and guardrails, scope what an agent is allowed to do, or write an agent spec/PRD. Produces an agent spec — goal & scope, tools with permissions, the control loop, guardrails & approval gates, memory, escalation/handoff, evaluation, and failure handling.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in AI & LLM Engineering, covering LLM guardrails and PRD writing. The repository describes itself as: 1255 professional Agent Skills for Claude, ChatGPT, Gemini, Cursor & Codex — PRDs, postmortems, leases, medical bills, layoffs, go-bags, new countries. Plain markdown, MIT, in… The licence is MIT.

When your agent uses it

  • Asked to design an AI agent
  • Define an agents tools and guardrails
  • Scope what an agent is allowed to do
  • Write an agent spec/PRD

Example prompts

  • “/agent-spec”

What it can do on your machine

Read from SKILL.md and the folder at commit 1cbf1f0. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Spec loads about 1.1k tokens when it runs. Until then it costs about 98 tokens; SKILL.md has 542 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~98
When it runs · the whole SKILL.md, loaded when a task matches
~1.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from mohitagw15856/pm-claude-skills at commit 1cbf1f0, republished under its MIT licence (© mohitagw15856). 542 words, ~1,083 tokens.

Download SKILL.mdSave it as .claude/skills/agent-spec/SKILL.md (or your agent's skills folder).
name
agent-spec
description
Specify an autonomous or tool-using AI agent before building it. Use when asked to design an AI agent, define an agent's tools and guardrails, scope what an agent is allowed to do, or write an agent spec/PRD. Produces an agent spec — goal & scope, tools with permissions, the control loop, guardrails & approval gates, memory, escalation/handoff, evaluation, and failure handling.

Agent Spec Skill

An agent is a model plus tools plus a loop — and the danger lives in the tools and the loop, not the model. This skill specifies an agent so its authority is explicit: what it can do, what needs a human yes, and what happens when it's wrong. Scope and guardrails first; cleverness second.

Not quite this? Use agent-observability-spec when the agent is in production and needs tracing and alerting.

Required Inputs

Ask for these only if they aren't already provided:

  • Job to be done — the outcome the agent owns, and the boundary of its authority.
  • Tools/actions — what it can call (read APIs, write actions, code execution), and which are irreversible.
  • Autonomy level — fully autonomous, propose-then-approve, or co-pilot.
  • Risk surface — what's the worst thing a wrong action could do (spend money, send a message, delete data)?
  • Success definition & escalation — how "done" is judged, and when it must hand off to a human.

Output Format

Agent Spec: [name]

1. Goal & scope — the job in one sentence; explicit non-goals and authority limits.

2. Tools / actions — a table; mark each action's reversibility and required permission.

ToolPurposeReversible?Gate
search_kbread contextyesnone
send_emailnotifynohuman approval

3. Control loop — plan → act → observe → reflect; the stopping condition; and a hard max-steps / max-cost budget so it can't loop forever.

4. Guardrails & approval gates — which actions require a human yes (default: anything irreversible, outbound, or spending), input/output validation, and allow/deny lists. Pair irreversible actions with a dry-run preview (see action-runner).

5. Memory & state — what it remembers within a task vs. across tasks, and where (link a professional-brain for durable memory).

6. Escalation & handoff — the triggers that stop the agent and route to a human (low confidence, repeated failure, out-of-scope request, high-risk action).

7. Evaluation — task success rate, action correctness, and safety (false-action rate). Define with an ai-eval-plan, and test on adversarial/trap tasks.

8. Failure handling — timeouts, tool errors, hallucinated tool calls, and the safe default (stop and ask, never guess on a high-risk action).

Show full SKILL.md (208 more words)Show less

Quality Checks

  • Every tool is marked reversible/irreversible, and every irreversible action has a human gate
  • There is a hard max-steps and max-cost budget — the loop cannot run unbounded
  • Escalation triggers are explicit (confidence, repeated failure, out-of-scope, high-risk)
  • The safe default on uncertainty is "stop and ask", not "guess and act"
  • Evaluation includes a safety metric (wrong/unauthorised actions), not just task success
  • Non-goals and authority limits are stated, not implied

Anti-Patterns

  • Do not give an agent irreversible actions without an approval gate — autonomy and irreversibility together is how agents cause real damage
  • Do not omit a step/cost budget — an agent that can loop is an agent that can rack up cost or thrash forever
  • Do not measure only task success — an agent that completes the task by taking a wrong action has failed
  • Do not let the agent invent tool calls or arguments — validate against the schema and fail safe
  • Do not skip the "what's the worst case" analysis — the risk surface determines how many guardrails you need

Based On

Tool-using / agentic design practice — bounded control loops, least-privilege tools, human-in-the-loop approval, and safety evaluation.

Example Trigger Phrases

  • "Design an AI agent."
  • "Define an agent's tools and guardrails."
  • "Scope what an agent is allowed to do."
  • "Write an agent spec/PRD."

© mohitagw15856, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/agent-spec of mohitagw15856/pm-claude-skills.

Open the folder on GitHubat commit 1cbf1f0

Compare with similar skills

Agent Spec next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Spec compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Spec this skillmohitagw15856/pm-claude-skills1.4k—~1.1kAutomated safety check: PassMIT
Controlww-w-ai/bkit-claude-code601—~1.6kAutomated safety check: NotesApache-2.0
App Spec Packagerinstructa/agent-skills139—~1.5kAutomated safety check: PassNone
Team Deliverablesslgoodrich/agents139—~2.2kAutomated safety check: PassCustom licence
Aisafetyhotwuyoscar/AISafetyHot-Hub641—~1.4kAutomated safety check: PassCustom licence
ObliteratusRedWoodOG/Hermes-Desktop1775 repos~3.8kAutomated safety check: PassMIT

Similar skills

  • Control

    ww-w-ai/bkit-claude-code

    Control bkit automation level (L0-L4), view trust score, and manage guardrails.

    601 GitHub stars~1.6k tokensUpdated 12 days ago
    AI & LLM EngineeringAuto-check: notes
  • App Spec Packager

    instructa/agent-skills

    A skill your agent uses when the user wants to turn an application, product, startup idea, SaaS, mobile app, web app, API, AI product, or internal tool into a production-ready Markdown specification…

    139 GitHub stars~1.5k tokensUpdated 11 days ago
    Product & Project ManagementAuto-check passed
  • Team Deliverables

    slgoodrich/agents

    Output templates and scoring rubrics for multi-agent team workflows.

    139 GitHub stars~2.2k tokensUpdated 6 mo ago
    EducationAuto-check passed
  • Aisafetyhot

    wuyoscar/AISafetyHot-Hub

    Query AI Safety HOT news, research papers, incidents, hot topics, and daily/weekly/monthly reports through its public read-only MCP service.

    641 GitHub stars~1.4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Obliteratus

    RedWoodOG/Hermes-Desktop

    Remove refusal behaviors from open-weight LLMs using OBLITERATUS — mechanistic interpretability techniques (diff-in-means, SVD, whitened SVD, LEACE, SAE decomposition, etc.) to excise guardrails…

    177 GitHub starsUsed in 5 repos~3.8k tokens
    AI & LLM EngineeringAuto-check passed
  • Turns a natural-language description of routing intent into a valid Lemonade collection.router policy JSON.

    406 GitHub stars~4k tokensUpdated today
    AI & LLM EngineeringAuto-check passed

More from mohitagw15856/pm-claude-skills

All 1,348 skills in this repo
  • Car Tco

    mohitagw15856/pm-claude-skills

    Compare the total cost of car ownership across buy-new, buy-used, lease, and keep-your-current-car — depreciation, insurance, maintenance ramp, and fuel over a real horizon, not just the monthly…

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Cs Health Scorecard

    mohitagw15856/pm-claude-skills

    Build a customer health scorecard for a specific account. An agent skill from mohitagw15856/pm-claude-skills.

    1.4k GitHub stars~2.4k tokensUpdated yesterday
    Auto-check passed
  • Exit Waterfall

    mohitagw15856/pm-claude-skills

    Compute who gets what at each exit price from a cap table — liquidation preferences, conversion points, and where the founders' share collapses.

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Feature Prioritisation

    mohitagw15856/pm-claude-skills

    Apply prioritisation frameworks (RICE, MoSCoW, Kano, ICE, Opportunity Scoring) to rank features and backlog items.

    1.4k GitHub stars~2k tokensUpdated yesterday
    Auto-check passed
  • Fire Number

    mohitagw15856/pm-claude-skills

    Compute a financial-independence (FIRE) target and years-to-reach with every assumption labeled as an assumption — plus a sensitivity table instead of a single false-precision answer.

    1.4k GitHub stars~1.1k tokensUpdated yesterday
    Auto-check passed
  • Freelance Rate

    mohitagw15856/pm-claude-skills

    Derive a freelance day/hourly rate backwards from target income, honest billable utilization, overhead, and the self-employment tax premium — the arithmetic that proves a rate is not salary÷2000.

    1.4k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed

Questions about Agent Spec

What does Agent Spec do?

Specify an autonomous or tool-using AI agent before building it. Agent Spec is an agent skill from mohitagw15856/pm-claude-skills. Specify an autonomous or tool-using AI agent before building it.

When should I use Agent Spec?

Agent Spec fits situations like: asked to design an AI agent; define an agents tools and guardrails; scope what an agent is allowed to do; write an agent spec/PRD.

How do I install Agent Spec in Claude Code?

Run `npx skills add mohitagw15856/pm-claude-skills --skill agent-spec -a claude-code`. Or copy the skill folder (skills/agent-spec in mohitagw15856/pm-claude-skills) into .claude/skills/agent-spec in your project. Claude Code loads it when a task matches its description.

How do I install Agent Spec in Codex?

Run `npx skills add mohitagw15856/pm-claude-skills --skill agent-spec -a codex`. Or copy the skill folder (skills/agent-spec in mohitagw15856/pm-claude-skills) into .agents/skills/agent-spec in your project. Codex loads it when a task matches its description.

Can I use Agent Spec in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mohitagw15856/pm-claude-skills --skill agent-spec -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-spec, .gemini/skills/agent-spec, .github/skills/agent-spec and .opencode/skills/agent-spec in your project.

What does Agent Spec need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Spec is instructions for the agent only.

Does Agent Spec access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Spec safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Spec use?

Agent Spec is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Spec use?

About 1.1k tokens (SKILL.md is roughly 4.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Spec?

Skills that share tags, products or a category with Agent Spec: Control (ww-w-ai/bkit-claude-code, 601 stars), App Spec Packager (instructa/agent-skills, 139 stars), Team Deliverables (slgoodrich/agents, 139 stars) and Aisafetyhot (wuyoscar/AISafetyHot-Hub, 641 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Spec?

mohitagw15856 (a GitHub user) maintains it in mohitagw15856/pm-claude-skills, which has 1,433 GitHub stars. The repository holds 1,348 skills in this directory. The repository was last updated on October 8, 2026.

Source: mohitagw15856/pm-claude-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.