netlayer-team/agent-handoff-metrics-bootstrap/agent-handoff-metrics-bootstrap
Claude Code and agent skill by netlayer-team/agent-handoff-metrics-bootstrap
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Bootstrap project memory, handoff workflow, and usage/ROI metrics for AI coding agents. Use when the user asks to install or bootstrap `.agent` handoff docs, thin `AGENTS.md`/`CLAUDE.md` adapters, Codex hooks, project-local AI usage tracking, background task-value summary maintenance, token summaries, derived cost/ROI reporting, or says phrases like "请根据这个 skill 在本工程中部署", "部署 AI 接管", "集成 AI 度量", or "把这套 agent workflow 用到当前项目".
Install
npx vskill@latest install netlayer-team/agent-handoff-metrics-bootstrap/agent-handoff-metrics-bootstrapSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as netlayer-team/agent-handoff-metrics-bootstrap/agent-handoff-metrics-bootstrap.
Agent Handoff Metrics Bootstrap
Project memory, handoff workflow, and ROI metrics for AI coding agents.
Use this skill to install a portable .agent single-source-of-truth handoff system plus Codex usage metrics into the current repository. The handoff system is the core: .agent/* owns project facts, while AGENTS.md, CLAUDE.md, and .codex/* are thin adapters or compatibility pointers.
The usage system has two layers:
- Hook layer: Codex hooks record per-turn token usage, elapsed time, model, Git state, and local audit metadata.
- Project-summary layer: after Stop, a background Codex maintainer updates
.agent/usage/project-summary.jsonas a task-level business value summary. It may merge multiple turns into one task and may leave consultation, pure Git, or no-deliverable turns only in hook audit metadata.
Workflow
- Resolve the target repo root with
git rev-parse --show-toplevelor use the current directory. - Run the bundled deploy script:
Useful options:
- Inspect the script report and
git status --short. - If files already existed and were skipped, merge the generated pattern manually or rerun with
--forceonly after deciding backups are acceptable. - Customize
.agent/context.md,.agent/handoff.md, and.agent/workflow.mdfrom real project facts. Do not leave the generated initialization notes as the final context. Keep durable facts in.agent/*; keepAGENTS.md,CLAUDE.md, and.codex/context.md/.codex/handoff.mdthin. - Validate:
What Gets Deployed
.agent/context.md,.agent/handoff.md,.agent/workflow.md.agent/prompts/start.md,.agent/prompts/finish.md,generate_value_report_site.py.agent/scripts/agent-start.sh,agent-finish.sh,agent-identity.sh,agent-usage-hook.py,project-summary-maintainer.sh.agent/usage/README.md, local hook audit summary, and initializedproject-summary.json.codex/hooks.json,.codex/config.tomlhook enablement,.codex/prompts/*,.codex/scripts/*.codex/context.mdand.codex/handoff.mdcompatibility pointers to.agent/*- Thin
AGENTS.mdandCLAUDE.mdentry adapters .githooks/pre-commitidentity check.gitignoreentries for local.agent/.codexruntime files- A README handoff entry when
README.mdalready exists
The deploy script does not commit anything.
Handoff Source-Of-Truth Rules
.agent/context.md: long-lived project goals, state, stack, key dirs, current task, latest validation, next plan, and project-specific cautions..agent/handoff.md: the latest session goal, completed work, changed files, test results, open issues, and next-agent advice..agent/workflow.md: common rules, commands, safety boundaries, test expectations, Git identity, and commit conventions.AGENTS.mdandCLAUDE.md: adapter files only. They should tell the tool what to read and tool-specific requirements; do not duplicate project facts there..codex/context.mdand.codex/handoff.md: Codex compatibility pointers only when this skill deploys them.
Usage Metrics Policy
codex-turns.jsonlandsummary.jsonare hook-layer local audit files. They are ignored by default and may contain prompts, assistant outputs, local paths, and session details.project-summary.jsonis commit-safe and task-level. It should contain stable metadata only: task title/summary, included turn indexes, aggregate token usage, elapsed time, AI-assessed complexity, and Git closure hints.- Do not put raw user prompts, assistant outputs, session IDs, transcript paths, local paths, costs, or ROI in
project-summary.json. - Do not force every turn into
project-summary.json; no-deliverable turns may stay only in hook audit data. - Cost, traditional cost, savings, and ROI are derived reports. Generate them from the current summary and current unit policy:
value-report.jsonis ignored by default because prices, exchange rates, and labor assumptions can change.
Agent Metadata Hint
Before finalizing a task in a deployed repo, it is useful to write AI-authored hook-layer metadata:
Complexity must be AI-assessed. Do not infer complexity from token count, elapsed time, or changed-file count. If metadata is missing, the hook records complexity as unknown; the background project-summary maintainer may still classify or exclude the turn at task level.
Notes
- The deploy script is intentionally conservative: existing files are skipped unless
--forceis passed. - If a repository already has project-specific rules, integrate them into
.agent/workflow.mdafter deployment. - If the user asks to apply this system to another repo, run the script there, then immediately review generated
.agent/*for project-specific corrections.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingSKILL.md
Popularity
- Repository stars
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/netlayer-team/agent-handoff-metrics-bootstrap/agent-handoff-metrics-bootstrap)