agentleFS
stevesimpson418stevesimpson418/ai-agent-template/.claude/CLAUDE.md

ai-agent-template

CLAUDE.md0 starsChanged 8 months agoMITView on GitHub

You are **{{AGENT_NAME}}**. {{AGENT_PERSONA}} Skills follow the Agent Skills open standard with Claude Code extensions. These fields are supported by Claude Code but not part of the open standard. Our validation script (scripts/validate-skills.sh) strips them before running agentskills validate so both layers pass. Full reference: https://code.claude.com/docs/en/skills#frontmatter-reference Each skill carries its own version in frontmatter as metadata.version (integer): Skills can include test cases in evals/evals.json and input files in test_files/. Run evals via /example-skills:skill-creator. Eval workspace outputs (*-workspace/) are gitignored.

  • Installs packages

The file

Files
CLAUDE.md

CLAUDE.md

What This Is

<!-- Replace with your assistant's description -->

{{AGENT_NAME}} is an AI assistant that {{AGENT_PURPOSE}}. This repo contains skills, configuration, and scheduled tasks that run on Claude Code.

You are {{AGENT_NAME}}. {{AGENT_PERSONA}}

Architecture

.claude/skills/       Skills (SKILL.md + optional evals, test_files, references)
scripts/              Validation and manifest generation
.github/workflows/    CI (lint, validate) and release automation
  • Skills are self-contained — all business rules live inside the skill, not in this file
  • This file provides repo conventions and assistant-specific configuration (calendars, API keys, persona)

Skill Frontmatter

Skills follow the Agent Skills open standard with Claude Code extensions.

Standard fields (Agent Skills spec)

FieldRequiredPurpose
nameYesLowercase, hyphens only, must match directory name (max 64 chars)
descriptionYesWhat it does and when to trigger (max 1024 chars)
metadataNoKey-value map for custom data (we use metadata.version for versioning)
licenseNoLicense name or reference
compatibilityNoEnvironment requirements
allowed-toolsNoSpace-delimited list of pre-approved tools

Claude Code extensions

These fields are supported by Claude Code but not part of the open standard. Our validation script (scripts/validate-skills.sh) strips them before running agentskills validate so both layers pass.

FieldPurpose
disable-model-invocationtrue = only invoked via /name, not automatically by Claude
argument-hintShown in autocomplete, e.g. [pdf-path]
user-invocablefalse = hidden from / menu, Claude-only background knowledge
modelOverride model when skill is active
effortOverride effort level (low, medium, high, max)
contextfork = run in isolated subagent (no conversation context)
agentSubagent type when context: fork (e.g. Explore, Plan)
hooksLifecycle hooks scoped to this skill
pathsGlob patterns limiting when skill activates

Full reference: https://code.claude.com/docs/en/skills#frontmatter-reference

Validation

  • scripts/validate-skills.sh .claude/skills/<name>/ — validates against the Agent Skills spec (stripping Claude Code extensions first)
  • scripts/validate-skills.sh --all — validates all skills
  • Pre-commit hook runs this automatically on staged SKILL.md files

Skill Versioning

Each skill carries its own version in frontmatter as metadata.version (integer):

metadata:
  version: 1
  • Bump the integer when skill content changes — pre-push hook enforces this
  • Version is per-skill, independent of repo release tags
  • The skills-manifest.json is auto-generated from frontmatter on commit

Evals

Skills can include test cases in evals/evals.json and input files in test_files/. Run evals via /example-skills:skill-creator. Eval workspace outputs (*-workspace/) are gitignored.

MCP Dependencies

<!-- Replace with your assistant's MCP servers -->
ServiceMCP ServerUsed for
{{SERVICE}}{{MCP_SERVER}}{{PURPOSE}}

Development Workflow

  • No direct pushes to main — feature branches + PRs
  • Conventional Commits: type(scope): description
    • Types: feat, fix, refactor, test, docs, chore, style, perf
    • Scopes: skills, config, ci, docs, evals, scripts
  • Lefthook enforces: markdownlint, agentskills validate, manifest generation, conventional commits, version bump check
  • CI runs on PRs: markdown lint, commit lint, skill validation, version check
  • Releases are automated on merge to main (semver from commit types)

Setup

brew install lefthook         # if not installed
uv tool install skills-ref        # Agent Skills validation
lefthook install              # activate git hooks

<!-- Everything below this line is assistant-specific configuration -->

{{AGENT_NAME}} — Configuration

{{AGENT_SPECIFIC_CONFIG}}

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.