Command Palette

Search for a command to run...

Back to skills
skill № 16724

zf-harness-self-improve

ZaoFu project-level harness self-improvement workflow for Claude or Codex. Use when asked to review recent ZaoFu work, session history, runtime events, manual…

FreeNo executable scripts
uisee-aiby uisee-ai★ 36 GitHub stars

Install zf-harness-self-improve in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

ZaoFu Harness Self-Improve

Objective

Find repeatable, costly, error-prone, or context-heavy workflows in ZaoFu development and turn them into explicit harness assets. This skill is provider-neutral: use the same process in Claude and Codex.

Default repository-facing output is Chinese unless the user asks otherwise.

Ground Rules

  • Read AGENTS.md first and follow ZaoFu repository rules.
  • Treat zf.yaml as the only control plane. Resolve project.state_dir instead of assuming .zf.
  • Do not write runtime truth directly: events.jsonl, kanban.json, feature_list.json, session.yaml, and role_sessions.yaml are kernel managed.
  • Phase 1 is read-only. Do not create skills, commands, hooks, cron jobs, docs, or backlogs until the user approves candidates.
  • Hooks, cron jobs, daemon behavior, provider settings, and workflow changes require separate explicit approval even if the user says "approve all".
  • Prefer backlog/task proposals over direct control-plane changes. Unapproved work goes under backlogs/; active approved work can move to tasks/.
  • When creating provider-facing skills, keep skills/, .codex/skills/, and .claude/skills/ bodies synchronized unless the user asks for a provider-specific variant.

Evidence Sources

Build conclusions from evidence, not intuition. Inspect only what is relevant to the user's question.

Source Use
AGENTS.md, .claude/rules/ repo discipline and backlog/doc rules
zf.yaml roles, skills, workflow, state dir, triggers
<state_dir>/events.jsonl repeated failures, stuck, rework, manual intervention
<state_dir>/kanban.json and task traces task lifecycle and contract drift
<state_dir>/instructions/ worker briefing friction and missing context
<state_dir>/projections/ Supervisor, automation, metrics, plan integrity findings
skills/, .codex/skills/, .claude/skills/ existing reusable assets and gaps
docs/manual/, docs/design/, docs/impl/ documented workflows and outdated guidance
backlogs/, tasks/, ideas/ known debt and candidate improvements
git log, git diff --stat, git status --short repeated edit patterns and recent drift

Provider-local histories such as ~/.claude/projects or Codex logs may be useful evidence, but they are not ZaoFu truth.

Phase 1: Read-Only Discovery

评估或修改 Skill 的实际收益时读取方法贡献对照; 复盘 Epic/已实施批次时读取累积复盘。 按当前任务选择,普通候选发现不默认加载两份全文。

  1. Identify a bounded time window or scope. If the user does not specify one, use recent repo/runtime evidence plus the current dirty state.
  2. Look for repeat signals:
    • the user repeatedly asks for the same review, repair, or manual command;
    • workers hit the same stuck/rework/dispatch/contract failure;
    • a skill or manual exists but agents still redo the process manually;
    • task evidence is scattered across events instead of durable artifacts;
    • a workflow requires fragile copy/paste or provider-specific knowledge;
    • Supervisor or Autoresearch repeatedly flags the same class of issue.
  3. Review existing asset descriptions and trigger text before declaring a gap. If an existing asset should have handled the workflow, prefer improving its name, description, scope, or usage instructions over creating a parallel one.
  4. When the evidence points to repeated compatibility layers, duplicate facts, growing fallback branches, unused public surface, or repair churn in the same module, invoke zf-find-simplifications for a separate proposal-only audit. Do not load it for an ordinary retrospective that has no simplification signal, and do not treat its candidates as approved implementation work.
  5. Classify each candidate by asset form.
  6. Produce a shortlist and stop for approval.

Shortlist format:

| Rank | Workflow | Evidence | Frequency | Harness pain | Recommended asset | Expected metric improvement | Risk | Approval ask |
|---|---|---|---|---|---|---|---|---|

Use concrete evidence references: event ids, task ids, file paths, commits, manual docs, or command outputs. Do not fabricate counts.

High-Confidence Criteria

A candidate is high-confidence only when most of these are true:

  • occurred at least 3 times across distinct sessions, tasks, or runtime traces;
  • each occurrence cost roughly 5+ minutes of manual effort, context loading, or recovery work;
  • inputs, procedure, outputs, and stopping condition are stable enough to package;
  • packaging would improve speed, quality, consistency, reliability, or observability;
  • existing skills, docs, commands, Supervisor checks, or Autoresearch scenarios do not already cover it adequately.

If evidence is promising but weak, list the item under "needs more evidence" instead of creating an asset.

Privacy

  • Do not quote secrets, tokens, API keys, private customer data, private chat content, or ful
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

Bundled files

  • agents/openai.yaml
  • references/epic-retrospective.md
  • references/method-evaluation.md

FAQ

What does the zf-harness-self-improve skill do?

ZaoFu project-level harness self-improvement workflow for Claude or Codex. Use when asked to review recent ZaoFu work, session history, runtime events, manual operations, backlogs, skills, docs, or repeated agent workflows to identify improvements that should become project skills, commands, hooks, cron jobs, Supervisor checks, Autoresearch scenarios, docs, or backlog items. Requires evidence-first read-only discovery before any asset creation.

How do I install the zf-harness-self-improve skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the zf-harness-self-improve skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare zf-harness-self-improve with