# Write New Skill

> Create new Claude Code skills with proper structure and progressive disclosure. Use when user wants to create, write, or build a new skill.

- **Type:** Skill
- **Install:** `agentstack add skill-dgilford-ai-science-toolkit-write-new-skill`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [dgilford](https://agentstack.voostack.com/s/dgilford)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [dgilford](https://github.com/dgilford)
- **Source:** https://github.com/dgilford/ai-science-toolkit/tree/main/skills/write-new-skill

## Install

```sh
agentstack add skill-dgilford-ai-science-toolkit-write-new-skill
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Writing Skills

## Process

1. **Gather requirements** - ask user about:
   - What task/domain does the skill cover?
   - What specific use cases should it handle?
   - Does it need executable scripts or just instructions?
   - Any reference materials to include?

2. **Draft the skill** - create:
   - SKILL.md with concise instructions
   - Additional reference files if content exceeds 100 lines
   - Utility scripts if deterministic operations needed

3. **Review with user** - present draft and ask:
   - Does this cover your use cases?
   - Anything missing or unclear?
   - Should any section be more/less detailed?

## Skill Structure

```
skill-name/
├── SKILL.md           # Main instructions (required)
├── REFERENCE.md       # Detailed docs (if needed)
└── scripts/           # Utility scripts (if needed)
```

## SKILL.md Template

Frontmatter fields: `name`, `description`, `allowed-tools`. Body: opening directive, optional live state injection, instructions, output template.

Optional sections: `## Anti-Rationalization` (3–5 skill-specific rows: an excuse an agent uses to skip a key step, paired with a factual rebuttal — never generic filler) and `## Verification` (exit-criteria checklist requiring observable evidence before claiming done).

## Shell injection

To inject live state before Claude sees the skill, open a fenced code block with three backticks immediately followed by `!` (no space). The command output replaces the block at skill load time. Always add `|| echo "(fallback)"` for non-git repos.

Use for: git status, git log, git diff, environment checks — any context that must be current rather than recalled.

## Description requirements

The description is what Claude scans to decide whether to auto-invoke the skill.

**Format**: Max 1024 chars. First sentence: what it does. Second: "Use when [specific triggers]."

**Good**: `Create or update a durable project handoff. Use when ending a session, switching agents, or preparing context for the next Claude session.`

**Bad**: `Helps with project state.`

## When to split files

Split into separate files when SKILL.md exceeds ~100 lines or content has clearly distinct domains. Keep the split shallow — one level of references only. Dense routing or orchestration content that would lose coherence if split (e.g. a decision tree, a lane table) may justify running over — say so rather than splitting badly.

## Review checklist

- [ ] Description includes specific triggers ("Use when...")
- [ ] SKILL.md under ~100 lines, or the overage justified (see "When to split files")
- [ ] Shell injection added if skill needs live repo or git state
- [ ] Output template uses `` not placeholder prose, to distinguish instructions from content
- [ ] Skill handles missing files gracefully (no `.ai/`, no `CLAUDE.md`, not a git repo)
- [ ] Scientific context section included if skill touches data, methods, or analysis
- [ ] Facts, assumptions, and recommendations are distinguished where relevant
- [ ] No time-sensitive information hardcoded
- [ ] Anti-Rationalization table present if skill has skip-worthy judgment steps (3–5 rows, skill-specific, not generic)
- [ ] Verification checklist present if skill has a completion state requiring observable evidence

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [dgilford](https://github.com/dgilford)
- **Source:** [dgilford/ai-science-toolkit](https://github.com/dgilford/ai-science-toolkit)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-dgilford-ai-science-toolkit-write-new-skill
- Seller: https://agentstack.voostack.com/s/dgilford
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
