ac: Agent-oriented Skill Creation, Evaluation, and Iteration Tool

Preface

In environments like Cursor and Claude Code, Skills are often triggered and executed via the frontmatter and body of SKILL.md. Hand-writing a version that works does not mean it will be stably selected in real conversations or produce outputs that meet expectations. A common practice is to tweak the prompt a few times and ship, without a reproducible test set, baseline comparisons, or quantitative metrics. It is even harder to verify whether the description “triggers when it should.”

The ac described below (SkillHub coordinate @user_1a94ec14/ac, v1.0.0) is a community Skill based on the general SKILL.md format, categorized under ai-agent. It turns “draft → run cases → human review → revise → re-test” into a closed loop, and ships benchmark aggregation, a review page, and a description optimization script. It is suitable for developers who need to polish Skills in a systematic way.

What This Is

The SkillHub introduction and the package documentation for ac are consistent: it is used to create Skills from scratch, modify and improve existing Skills, and measure Skill performance. Typical trigger scenarios include: creating a new Skill, editing or optimizing an existing Skill, running evals to validate, performing benchmarks with variance analysis, or optimizing the description to improve trigger accuracy.

  • Maintainer: Community publisher user_1a94ec14, marked as community source.
  • Format: Standard Skill directory structure, with SKILL.md as the entry point (the name field in the package frontmatter is skill-creator, coexisting with the store display name ac; the authoritative reference is the install path @user_1a94ec14/ac).
  • Dependencies: SkillHub tag requires_api_key=false; some advanced capabilities (e.g., the description optimization loop) rely on the local claude CLI (claude -p). In environments without sub-agents, the corresponding steps are skipped as documented.

Core Functions

The following capabilities are summarized from the workflow as documented in the installed v1.0.0 package’s SKILL.md and the accompanying scripts.

Create and Author a Skill

  1. Intent capture: Clarify what the Skill should do, when it should trigger, what its output form should be, and whether objectively verifiable test cases can be established.
  2. Write SKILL.md: Required YAML frontmatter (name, description); the body describes the execution steps; optional scripts/, references/, assets/ for progressive loading.
  3. Test cases: Write 2–3 realistic user-style prompts into evals/evals.json under the Skill directory (fields are defined in references/schemas.md).

Evaluation and Benchmarks (for environments with sub-agents)

  1. Create <skill-name>-workspace/ at the same level as the Skill directory, and organize results as iteration-N/eval-<id>/.
  2. For each case, launch both “with Skill” and “baseline” runs in the same round (when creating a new Skill, the baseline is “no Skill”; when improving an existing Skill, you can compare against a snapshot of the old version).
  3. During the runs, write assertions for each case and record them in eval_metadata.json and evals/evals.json; capture timing.json from task notifications (tokens, latency).
  4. Use agents/grader.md to score, and perform aggregation:
python -m scripts.aggregate_benchmark <workspace>/iteration-N --skill-name <name>
  1. Use eval-viewer/generate_review.py to open a two-pane review page with Outputs and Benchmark; after the user submits, read feedback.json to drive the next round of revisions.

Description Optimization

Targeting the description in the frontmatter (the main trigger channel):

  1. Prepare around 20 real queries in JSON, covering “should trigger / should not trigger.”
  2. Use the assets/eval_review.html template to revise the eval set together with the user.
  3. Run the optimization loop in the background (example):
python -m scripts.run_loop \
  --eval-set <path-to-trigger-eval.json> \
  --skill-path <path-to-skill> \
  --model <model-id-powering-this-session> \
  --max-iterations 5 \
  --verbose

The script splits the eval set into training/test sets, samples trigger rates over multiple runs, and outputs a report containing best_description.

Packaging and Others

  • python -m scripts.package_skill <path/to/skill-folder>: Generate a .skill package (if the environment provides capabilities such as present_files, the documentation will guide the delivery path).
  • Optional blind comparison: see agents/comparator.md and agents/analyzer.md.
  • Claude.ai / Cowork: The documentation includes separate adaptation notes (e.g., if there are no sub-agents, perform serial self-testing; if there is no display, use generate_review.py --static).

Installation and Activation

The installation guide on the SkillHub page is: follow the SkillHub installation documentation, and install the coordinate @user_1a94ec14/ac.

1. Install the SkillHub CLI (if not yet installed)

command -v skillhub && skillhub --version

If not installed, run:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

2. Install into the current Agent’s skills directory

When installing, use --dir to point to the skills directory recognized by the current Agent; otherwise, the default ./skills/ may not be loaded.

skillhub install @user_1a94ec14/ac --dir <your skills directory>

Common paths (from the SkillHub installation documentation):

  • Cursor: ~/.cursor/skills/
  • Claude Code: ~/.claude/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Skill list according to the rules of your client. This Skill does not require an API key (requires_api_key=false).

Note: Ratings and download counts shown on the store page and in fetched materials may change over time. At the time of writing, the SkillHub page shows a rating of 100000 and 742 downloads; if it differs from other clues, take the SkillHub page as the source of truth.

Typical Usage

Build a Skill from Scratch

  1. In the conversation, describe the target capability, and after loading ac, have the Agent follow “Capture Intent → Write SKILL.md → Write evals/evals.json.”
  2. Run iteration-1 under the workspace, with parallel with_skill / without_skill (or a snapshot of the old version).
  3. Aggregate the benchmark and generate the review page:
nohup python <ac-install-path>/eval-viewer/generate_review.py \
  <workspace>/iteration-1 \
  --skill-name "my-skill" \
  --benchmark <workspace>/iteration-1/benchmark.json \
  > /dev/null 2>&1 &
  1. Revise the Skill according to feedback.json, and repeat iterations; after satisfaction, consider using run_loop to optimize the description.

Optimize Only the Trigger Text of an Existing Skill

  1. Finalize the trigger eval JSON together with the user (including edge-case “near-miss” negatives).
  2. Run scripts.run_loop against the existing Skill directory, and write the returned best_description back into the SKILL.md frontmatter.

Minimal Example of evals.json

{
  "skill_name": "example-skill",
  "evals": [
    {
      "id": 1,
      "prompt": "User's task prompt",
      "expected_output": "Description of expected result",
      "files": []
    }
  ]
}

For the full fields and the structure of grading.json and benchmark.json, see references/schemas.md in the package.

Use Cases and Notes

Who It Is For

  • Developers who need to maintain multiple Agent Skills for a team or for themselves, and want a unified process for regression and version comparisons.
  • Those who have encountered “the Skill sometimes does not trigger” or “triggers too broadly,” and are willing to use an eval set and run_loop to tune the description.
  • Users of Claude Code, Cowork, or similar environments that support sub-agents, so the value of parallel case execution and baseline comparisons can be realized.

Limitations and Cautions

  • Core benchmarking depends on sub-agents and (in some steps) the claude CLI; in pure Claude.ai documentation, it degrades to self-testing plus qualitative feedback and skips meaningless baseline comparisons.
  • Without a GUI, use generate_review.py --static <output_path>; feedback is based on the downloaded feedback.json.
  • When improving a Skill, avoid overfitting to a small number of evals; the documentation emphasizes abstracting generalizable rules from feedback and consolidating recurring scripts into scripts/.
  • During installation, ensure --dir points to the correct skills directory; the current community package version is 1.0.0, and upgrades should follow SkillHub.

Closing

ac elevates Skill engineering from “one-off writing” to a repeatable process of creation, evaluation, human review, and description optimization, and ships aggregation scripts and an HTML review tool. If you maintain SKILL.md on Cursor / Claude Code, you can install @user_1a94ec14/ac from SkillHub, and follow the stages described in the package’s SKILL.md to determine whether you are in drafting, evaluation, or optimization.

  • SkillHub page: https://www.skillhub.cn/skills/user_1a94ec14/ac
  • API coordinate page: https://api.skillhub.cn/user_1a94ec14/ac
  • Installation instructions: https://skillhub.cn/install/skillhub.md
羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye