Skip to content
Back to skills

Collection

ASecurity

Meta-skill for writing and maintaining Claude Code skills. Use when creating new skills, updating existing skills, or reviewing skill quality. Enforces progressive disclosure and size limits.

  • 24 stars
  • 0 votes
  • 0 copies
  • 9 views
  • Added September 8, 2026
code-qualitygobashtestingdebugginggitapidatabasedocumentation

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add mattnigh/skills_collection --skill collection --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Collection?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Collection
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/mattnigh-collection-053e9949/badge)](https://www.skillsdirectory.com/skills/mattnigh-collection-053e9949)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: tzurot-skills-guide
description: Meta-skill for writing and maintaining Claude Code skills. Use when creating new skills, updating existing skills, or reviewing skill quality. Enforces progressive disclosure and size limits.
lastUpdated: '2025-12-20'
---

# Writing Claude Code Skills - Best Practices

**Use this skill when:** Creating a new skill, updating an existing skill, or reviewing skill quality.

## Core Principle: Progressive Disclosure

> "Don't tell Claude all the information you could possibly want it to know. Rather, tell it **how to find** important information so that it can use it only when needed."
> — Anthropic Engineering

**Skills should be concise entry points, not exhaustive documentation.**

## Size Limits

| Metric       | Target | Maximum | Action if Exceeded         |
| ------------ | ------ | ------- | -------------------------- |
| Skill lines  | <300   | 400     | Split or reference docs    |
| Total skills | 10-12  | 15      | Consolidate related skills |
| CLAUDE.md    | <400   | 500     | Move content to skills     |

**Current skill sizes should be monitored:**

```bash
wc -l .claude/skills/**/SKILL.md | sort -n
```

## Skill Structure Template

```markdown
---
name: tzurot-skillname
description: Action-oriented description. Use when [specific triggers]. Covers [key topics].
lastUpdated: 'YYYY-MM-DD'
---

# Skill Title

**Use this skill when:** [2-3 specific trigger scenarios]

## Quick Reference (Essential)

[10-20 lines of the most critical patterns]

## Core Patterns (Must Know)

[50-100 lines of essential patterns with examples]

## Additional Patterns

**See:** `docs/path/to/detailed-docs.md`
[Brief summaries with links, not full content]

## Related Skills

- **skill-name** - When to use instead

## References

- Full documentation: `docs/path/to/doc.md`
- Project guidelines: `CLAUDE.md#section`
```

## What Belongs in Skills vs Docs

| Content Type         | Location                       | Example                                 |
| -------------------- | ------------------------------ | --------------------------------------- |
| Quick patterns       | Skill                          | "Use fake timers: `vi.useFakeTimers()`" |
| Essential examples   | Skill                          | 5-10 line code snippet                  |
| Comprehensive guides | `docs/`                        | Full testing guide with all edge cases  |
| Reference tables     | `docs/`                        | Complete API reference                  |
| Decision rationale   | Skill (brief) + `docs/` (full) | Why we use rebase-only                  |

## Writing Good Descriptions

The `description` field in YAML frontmatter determines when Claude auto-activates the skill.

**Action-oriented triggers work best:**

```yaml
# ❌ BAD - Passive, vague
description: Testing patterns for the project.

# ✅ GOOD - Action triggers
description: Use when writing tests, debugging test failures, or mocking dependencies. Covers Vitest patterns, fake timers, and mock factories.
```

```yaml
# ❌ BAD - Too broad
description: Database and vector operations.

# ✅ GOOD - Specific triggers
description: Use when writing Prisma queries, running migrations, or working with pgvector similarity search. Covers connection pooling and migration workflow.
```

## When to Create a New Skill

**Create a new skill when:**

- Pattern applies to multiple features/areas
- Topic is distinct from existing skills
- Content would bloat an existing skill beyond limits
- Users frequently need this specific guidance

**Don't create a new skill when:**

- Content fits in existing skill (<50 lines to add)
- Topic is one-off or temporary
- Better suited for `docs/` as reference material
- Would duplicate existing skill content

## When to Merge Skills

**Merge skills when:**

- Significant content overlap (>30%)
- Topics are closely related (e.g., constants + types)
- Combined size stays under 400 lines
- Mental model is clearer as one concept

**Process:**

1. Create merged skill with combined essential content
2. Move non-essential content to `docs/`
3. Delete old skill directories
4. Update README.md skill index
5. Update any CLAUDE.md references

## Skill Maintenance

**Regular audits (monthly or after major features):**

1. Check skill sizes: `wc -l .claude/skills/**/SKILL.md`
2. Remove outdated patterns
3. Update `lastUpdated` timestamps
4. Verify cross-references still valid

**After production incidents:**

1. Add lessons learned to relevant skill
2. Keep addition brief (reference post-mortem for details)
3. Update `lastUpdated`

## Anti-Patterns to Avoid

### 1. Documentation Dumping

```markdown
# ❌ BAD - Entire guide in skill

## Complete API Reference

[500 lines of every possible option]

# ✅ GOOD - Essential + reference

## Key Options

- `ttl`: Cache lifetime in ms
- `maxSize`: Maximum entries

**Full options:** See `docs/reference/cache-api.md`
```

### 2. Duplicate Content

```markdown
# ❌ BAD - Same content in skill and CLAUDE.md

[Pattern explained in both places]

# ✅ GOOD - Single source of truth

**See:** `CLAUDE.md#testing` or reference from CLAUDE.md to skill
```

### 3. Over-Detailed Examples

```markdown
# ❌ BAD - 50-line example for simple concept

[Full service with all edge cases]

# ✅ GOOD - Minimal viable example

const cache = new TTLCache({ ttl: 60000, maxSize: 100 });
cache.set('key', value);
const result = cache.get('key');
```

### 4. Missing Cross-References

```markdown
# ❌ BAD - Standalone content

[No links to related skills or docs]

# ✅ GOOD - Connected knowledge

## Related Skills

- **tzurot-architecture** - Service boundaries
- **tzurot-async-flow** - Timer alternatives
```

## Skill Quality Checklist

Before committing a new or updated skill:

- [ ] Under 400 lines
- [ ] Has "Use this skill when:" section
- [ ] Action-oriented description in frontmatter
- [ ] Essential patterns only (detailed content in docs/)
- [ ] Includes Related Skills section
- [ ] Includes References section
- [ ] `lastUpdated` timestamp current
- [ ] No duplicate content with other skills
- [ ] Examples are minimal but complete

## Related Skills

- **tzurot-docs** - Documentation organization and maintenance
- **tzurot-git-workflow** - Committing skill changes

## References

- Anthropic best practices: https://www.anthropic.com/engineering/claude-code-best-practices
- Skills documentation: https://docs.claude.com/en/docs/claude-code/skills
- Project structure: `.claude/skills/README.md`

Files in this skill

  • 0Chan-smc__claude-code-workflow-lab__claude__skills__frontend-dev-guidelines__SKILL.md15.1 KB
  • 17hz__nextjs-template__claude__skills__example-skill__SKILL.md316 B
  • 1ambda__dataops-platform__claude__skills__context-synthesis__SKILL.md3.5 KB
  • 1natsu172__dotfiles__claude__skills__git-analysis__SKILL.md5.4 KB
  • 1natsu172__dotfiles__claude__skills__github-pr-best-practices__SKILL.md7.7 KB
  • 23Maestro__prospect-pipeline__claude__skills__npid-fastapi-skill.md26.1 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-javascript__SKILL.md15.7 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-code-python__SKILL.md17.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-expression-syntax__SKILL.md9.4 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-mcp-tools-expert__SKILL.md12.5 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-node-configuration__SKILL.md16.6 KB
  • 360AYA25__ClaudeN8N__claude__skills__n8n-workflow-patterns__SKILL.md11.2 KB
  • 3x-Projetos__claude-memory-framework__claude__skills__scientist__SKILL.md14.8 KB
  • 5MinFutures__futures-arena__claude__skills__migration-tracker__SKILL.md16.2 KB
  • 5MinFutures__futures-arena__claude__skills__planning-guidelines__SKILL.md11.8 KB
  • 92Bilal26__TaskPilotAI__claude__skills__assessment-builder__SKILL.md17.5 KB
  • 92Bilal26__TaskPilotAI__claude__skills__book-scaffolding__SKILL.md19.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__code-validation-sandbox__SKILL.md6.2 KB
  • 92Bilal26__TaskPilotAI__claude__skills__exercise-designer__SKILL.md18.1 KB
  • 92Bilal26__TaskPilotAI__claude__skills__learning-objectives__SKILL.md24.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in code-quality →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.