Agent skill
feat-20260126-214833
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/feat-20260126-214833
SKILL.md
Extract story metrics skill from story-writer agent
Overview
Extract the performance metrics calculation logic from story-writer agent into a dedicated skill with bash script. The agent will preload this skill for calculating commit counts, timestamps, duration, and velocity.
Key Files
plugins/core/agents/story-writer.md- Simplify to preload skillplugins/core/skills/story-metrics/SKILL.md- New skill definition (create)plugins/core/skills/story-metrics/scripts/calculate.sh- Bash script for metrics calculation (create)
Implementation Steps
- Create
plugins/core/skills/story-metrics/SKILL.mdwith instructions for using the metrics script - Create
plugins/core/skills/story-metrics/scripts/calculate.shthat:- Takes base branch as argument (default: main)
- Calculates commit count:
git rev-list --count <base>..HEAD - Gets first/last commit timestamps
- Calculates duration in hours
- Determines velocity unit (hours vs business days)
- Outputs JSON with all metrics for easy parsing
- Update
plugins/core/agents/story-writer.md:- Add
skills: [story-metrics]to frontmatter - Replace inline bash commands with reference to skill script
- Keep narrative writing instructions in agent
- Add
Considerations
- Script output should be JSON for reliable parsing
- Duration unit logic (hours vs business days) belongs in script
- Story narrative generation stays in agent (requires LLM reasoning)
Final Report
Development completed as planned.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?