agent-engineering-init

agent-engineering-init is a skill for Claude Code, Codex from zhusq20/claude_engineering. It costs 136 tokens per session (1,120 once invoked), scanned C, original, MIT.

A repository setup skill that adds a reusable structure for working with coding agents, including instructions, skills, hooks, shared session state, and code checks.

In plain words
What is it for?
Use it to initialize a repository with CLAUDE.md, agent skills, workspace state, event hooks, and optional pre-commit checks.
Why use it?
It gives an otherwise unprepared repository a consistent place for agent guidance, automation, and review steps.

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/zhusq20/claude_engineering/agent-engineering-init
Any agent
npx skills add zhusq20/claude_engineering --skill agent-engineering-init
Clone the repo
git clone --depth 1 https://github.com/zhusq20/claude_engineering

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agent-engineering-init

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhusq20/claude_engineering/agent-engineering-init.svg)](https://agentmods.dev/skills/zhusq20/claude_engineering/agent-engineering-init)
Your own site
<a href="https://agentmods.dev/skills/zhusq20/claude_engineering/agent-engineering-init"><img src="https://agentmods.dev/badge/skills/zhusq20/claude_engineering/agent-engineering-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 136 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,120 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 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.00136 $0.01120
Opus 5 $0.00068 $0.00560
Sonnet 5 $0.00027 $0.00224
Haiku 4.5 $0.00014 $0.00112

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

Security

Grade C, and why

agent-engineering-init scanned grade C with 2 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 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (init.sh), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

cat .claude/settings.json # hook config resolves

Enumerates other installed skillsmediumAgent snooping

Other skills' SKILL.md files reveal prompts, capabilities and secrets that should be invisible to peers.

ls .claude/skills/ # bootstrap review housekeeping verify
agent-engineering-init/SKILL.md · 102 lines

How it starts

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

Agent Engineering Init

Scaffold a complete, reusable agent-engineering structure into a target repo: the three-tier layout (.agents/ source of truth → .claude/ symlink view → .agents_workspace/ state), CLAUDE.md, four core stack-agnostic skills (bootstrap, review, housekeeping, verify), generic knowledge files, a SessionStart/PreToolUse hook config, and optional pre-commit config.

This skill ships an init.sh next to this SKILL.md that does the heavy lifting.

Step 1: Gather parameters (use AskUserQuestion)

Determine and confirm with the user:

  1. Target repo — the directory to scaffold into (default: current working dir, or the argument passed to the skill). Confirm it is the intended repo root.
  2. Project name — used in CLAUDE.md (default: repo directory name).
  3. Primary language / lint backendruff (Python) wires up a working commit-time lint gate; none writes a clearly-marked placeholder hook for the user's stack. Ask which fits.
  4. Write .pre-commit-config.yaml? — yes by default; skip if the repo already has its own.

If the repo already contains .agents/skills, ask whether to overwrite (--force) or abort.

Step 2: Run the scaffolder

From the directory containing this skill, run init.sh against the target:

bash <skill-dir>/init.sh \
  --target "<TARGET_REPO>" \
  --name "<PROJECT_NAME>" \
  --lint "<ruff|none>" \
  [--no-precommit] [--force]

init.sh is idempotent-safe: it refuses to clobber an existing .agents/ without --force, appends to .gitignore rather than overwriting, and never destroys .agents_workspace/.

Step 3: Verify

cd "<TARGET_REPO>"
ls -l .claude/                 # skills, knowledge, hooks, settings.json -> symlinks
ls .claude/skills/             # bootstrap review housekeeping verify
cat .claude/settings.json      # hook config resolves
test -d .agents_workspace && echo "workspace OK"

Confirm every symlink resolves (no "broken symlink"), and that .claude/knowledge/constraints.md is readable through the link.

Read the full file on GitHub · 102 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 4d ago First seen · 102 lines · 136 tokens per session scan C 3fee2ab9659e

Subscribe to this mod's changes

agent-engineering-init is a skill published in the GitHub repository zhusq20/claude_engineering (2 stars, last pushed 3mo ago), licensed MIT. It adds 136 tokens to every session and 1,120 once invoked, about $0.0007 per session on Opus 5. A static security scan graded it C with 2 findings (reads agent configuration directories, enumerates other installed skills). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

git-commit

Generate well-formatted git commit messages following conventional commit standards.

ThinkInAIXYZ/deepchat · 15 tokens

test-repo

Use this skill to test strategy changes against a fresh test repository. Invoke when the user asks to "test against a test repo", "validate the changes", or wants to verify session hooks, commits, and checkpoint creation work correctly.

entireio/cli · 50 tokens

commit-push-pr

Commit selected local changes, push the branch, and create or update a GitHub pull request with BitFun attribution. Use when the user asks to 提交 PR、提代码、commit and push、开 PR、create a pull request, or wants a Claude Code-like one-command PR publishing flow from BitFun.

GCWing/BitFun · 68 tokens

commit

Commit current changes with a clear, descriptive message.

NVIDIA-NeMo/DataDesigner · 11 tokens

contributing

How to contribute to evlog, covering commit and PR conventions, changesets, the Definition of Done, testing rules, and the authored skills that walk through building a new adapter, enricher, framework integration, or map rule. Load this for any question about contributing, opening a PR, or adding something to the…

HugoRCD/evlog · 68 tokens

github-contributor

End-to-end playbook for shipping high-quality pull requests to open-source projects you don't maintain — discovery, CONTRIBUTING compliance, PR-size check, minimal-diff implementation, PR description with AI-assisted disclosure, conflict resolution, and post-submission maintainer interaction. Use whenever creating…

daymade/claude-code-skills · 133 tokens