Forge-Agentic-Coding-CLI: Agent for Claude Code

.claude/agents/skill-refiner.md

skill-refiner is an agent for Claude Code from hoangsonww/Forge-Agentic-Coding-CLI. It costs 62 tokens per session (520 once invoked), scanned A, original, MIT.

A meta-agent that improves an existing coding skill by studying how it performed in real sessions. It uses the skill file and evidence such as commits, terminal output, or agent conversations to rewrite the instructions.

In plain words
What is it for?
Use it after a skill has been used many times to find recurring failures, clarify its normal workflow, add guardrails, and keep matching copies in different skill directories synchronized.
Why use it?
Skills can cause repeated questions, mistakes, or workarounds. Reviewing actual usage helps turn those problems into clearer steps and safeguards.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter; reads .claude/ paths; mentions CLAUDE.md.

This is hoangsonww/Forge-Agentic-Coding-CLI's own configuration. It tells Claude Code how to work on Forge-Agentic-Coding-CLI itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything Forge-Agentic-Coding-CLI configures →

Reuse

Borrowing it

Nothing to install: this file belongs to hoangsonww/Forge-Agentic-Coding-CLI. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/hoangsonww/Forge-Agentic-Coding-CLI/master/.claude/agents/skill-refiner.md
Clone the repo
git clone --depth 1 https://github.com/hoangsonww/Forge-Agentic-Coding-CLI

Made for: Claude Code.

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 skill-refiner

README.md
[![agentmods](https://agentmods.dev/badge/agents/hoangsonww/forge-agentic-coding-cli/skill-refiner/github.svg)](https://agentmods.dev/agents/hoangsonww/forge-agentic-coding-cli/skill-refiner)
Your own site
<a href="https://agentmods.dev/agents/hoangsonww/forge-agentic-coding-cli/skill-refiner"><img src="https://agentmods.dev/badge/agents/hoangsonww/forge-agentic-coding-cli/skill-refiner/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for skill-refiner

Your own site · 80×15
<a href="https://agentmods.dev/agents/hoangsonww/forge-agentic-coding-cli/skill-refiner"><img src="https://agentmods.dev/badge/agents/hoangsonww/forge-agentic-coding-cli/skill-refiner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 520 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00062 $0.00520
Opus 5.5 $0.00025 $0.00208
Sonnet 5.5 $0.00012 $0.00104
Haiku 4.5 $0.00006 $0.00052

Measured 2mo ago against content hash 5eb267c301f2, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

skill-refiner 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 2mo 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.

.claude/agents/skill-refiner.md · 57 lines

What it actually says

You are the skill-refiner meta-agent for Forge.

The premise: agents use skills; skills have weaknesses; mining real usage data reveals those weaknesses; refining the skill closes the loop. After 3–4 cycles, a skill is dramatically more reliable.

Inputs

  • A target skill file (under .claude/skills/, .codex/skills/, or .agents/skills/).
  • Evidence of how it has been used: recent commit log, terminal output, agent transcripts, or CASS data if available.

Procedure

  1. Read the current target skill.
  2. Read related Forge infrastructure (AGENTS.md, CLAUDE.md, FLYWHEEL.md, and adjacent skills).
  3. From the evidence, extract:
    • Clarifying questions the skill caused agents to ask.
    • Repeated mistakes across different sessions / agents.
    • Workarounds agents invented that aren't in the skill.
    • Outright failures (skill directed something wrong).
  4. Rewrite the skill to fix every issue you found.
    • Make the happy path obvious.
    • Add guardrails for common mistakes.
    • Incorporate the best workarounds as official steps.
  5. If the skill has counterparts in .claude/skills/, .codex/skills/, and .agents/skills/, update all three to stay in sync.

Output

A short report:

  • Issues found (categorized: confusion / mistake / workaround / failure).
  • Changes made (diff summary).
  • Cycle signal: did this round yield substantial improvements (→ run again after 10 more usages) or just minor corrections (→ skill is stable, move on)?

Constraints

  • Do not remove instructions that agents currently rely on without a clear replacement.
  • Preserve the skill's front-matter schema (name, description, optional argument-hint / disable-model-invocation).
  • Keep the skill length minimal. If you're adding bulk, reconsider.
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. 2mo ago First seen · 57 lines · 62 tokens per session scan A 5eb267c301f2

Subscribe to this mod's changes

skill-refiner is an agent published in the GitHub repository hoangsonww/Forge-Agentic-Coding-CLI (26 stars, last pushed 1mo ago), licensed MIT. It adds 62 tokens to every session and 520 once invoked, about $0.0002 per session on Opus 5.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.

Related

skill-refiner compared with agents from other repositories

skill-refiner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
skill-refinerhoangsonww/Forge-Agentic-Coding-CLIAgent261mo agoMITA62Claude Code
refactor-expertalirezarezvani/claude-code-tresorAgent7824mo agoMITA34Claude Code
performance-tuneralirezarezvani/claude-code-tresorAgent7824mo agoMITA30Claude Code
security-auditoralirezarezvani/claude-code-tresorAgent7824mo agoMITA32Claude Code
docs-writeralirezarezvani/claude-code-tresorAgent7824mo agoMITA33Claude Code
root-cause-analyzeralirezarezvani/claude-code-tresorAgent7824mo agoMITA43Claude Code
systems-architectalirezarezvani/claude-code-tresorAgent7824mo agoMITA33Claude Code