agent-customization

A project-customization feature that adds a repository's own instructions and commands to generic Claude agent templates. It uses the project's skills and AGENTS.md file as its source of context.

In plain words
What is it for?
Use it to customize Claude agents with a project's technology stack, conventions, and real commands.
Why use it?
Generic agents may not know a project's technology choices or working rules. This supplies that context while leaving the agents' main behavior unchanged.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/aspenkit/aspens/agent-customization
Any agent
npx skills add aspenkit/aspens --skill agent-customization
Clone the repo
git clone --depth 1 https://github.com/aspenkit/aspens

Made for: Claude Code, Codex.

Per session 22 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 851 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00022 $0.00851
Opus 5 $0.00011 $0.00426
Sonnet 5 $0.00004 $0.00170
Haiku 4.5 $0.00002 $0.00085

Measured 2d ago against content hash 1a2600d50da9, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agent-customization scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/agent-customization/SKILL.md · 47 lines

How it starts

The opening of the file, as written. The whole thing — 47 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are working on agent customization — the feature that reads a project's skills and AGENTS.md, then uses Claude CLI to inject project-specific context into generic agent files in .claude/agents/.

Domain purpose

aspens customize agents makes generic, bundled agent templates project-aware. It pulls the repo's skills + AGENTS.md as ground truth and asks Claude to add a tech-stack line, 3-5 project conventions, and real commands into each agent — without touching the agent's core logic.

Business rules / invariants

  • Claude-only feature. Throws CliError for Codex-only repos (config.targets === ['codex']). Codex CLI has no agent concept.
  • Base skill is required. Pre-flight throws CliError("Run 'aspens doc init' first — base skill is required for agent context.") if .agents/skills/base/SKILL.md is missing.
  • Skills (.claude/skills/**) are the single source of truth for project context. The prompt must not invent other context directories.
  • Read-only tools only. Claude is invoked with allowedTools: ['Read', 'Glob', 'Grep'] — no edits/writes from the LLM itself.
  • Output paths restricted to .claude/. parseFileOutput() rejects anything else; writeSkillFiles(..., { force: true }) does the actual write.

Non-obvious behaviors

  • Frontmatter preservation is split across LLM + code. The prompt instructs Claude to preserve YAML frontmatter verbatim (including NOT adding a skills: line). Then maybeInjectBaseSkill() post-processes each returned file to add skills: [base] into the frontmatter — this keeps agents valid even when installed via aspens add agent without a prior doc init.
  • --reset semantics: without --reset, agents that already declare skills: are left alone; with --reset, any existing skills: line is overwritten to skills: [base]. Used to roll out v0.8 upgrades to previously-customized agents.
  • ## Project context block is verbatim-preserved by the prompt — it carries conditional read instructions for code-map / domain skills.
  • AGENTS.md is truncated at 3000 chars in gatherProjectContext(); skills are passed in full.
  • Agent discovery: findAgents() recursively walks .claude/agents/, extracts name: via regex, falls back to filename if missing.
  • Default timeout 300s via resolveTimeout(options.timeout, 300); ASPENS_TIMEOUT env var honored with warning on invalid value.

Read the full file on GitHub · 47 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 47 lines · 22 tokens per session scan A 1a2600d50da9

Subscribe to this mod's changes

agent-customization is a skill published in the GitHub repository aspenkit/aspens (96 stars, last pushed 17d ago), licensed MIT. It adds 22 tokens to every session and 851 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.