跳到正文
cccskills
免费在 GitHub 公开

harness-improvement

Improve Kandev's AI harness from session learnings or explicit requests. Use when the user asks to record learnings, update or create skills, agents, subagents, commands, AGENTS.md/CLAUDE.md guidance, or adapt harness files across Claude, Codex, Cursor, or OpenCode.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev星标 1,024(GitHub 1,024 + cccskills 0)

实测评分 未实测

查看安装方法

包含的文件(10)

  • SKILL.md5.2 KB
  • references/agents.md2.3 KB
  • references/instructions.md2.2 KB
  • references/platforms/claude.md3.3 KB
  • references/platforms/codex.md2.6 KB
  • references/platforms/cursor.md3.2 KB
  • references/platforms/opencode.md3.0 KB
  • references/session-learnings.md3.1 KB
  • references/skills.md2.2 KB
  • references/validation.md890 B

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Harness Improvement

Use this skill to turn lessons from real agent sessions into durable harness changes: skills, agents, subagents, commands, scripts, and always-on instruction files.

For an explicitly requested session retrospective, use /retro to filter lessons and propose shared-file edits.

Planner Entry

The planner may inventory, edit, and validate a small localized harness change directly. Delegate broad cross-platform migration or independent work when it has positive ROI. Do not use Kandev MCP task/session APIs for workers.

Choose The Artifact

Before editing, classify the requested improvement:

  • Session learning: recurring failure, workaround, or convention discovered during a session. Read references/session-learnings.md.
  • Skill: task-specific playbook loaded on demand. Read references/skills.md.
  • Custom agent: an exception that requires the user to explicitly reverse the repository's single-session policy. Read references/agents.md before acting.
  • Command: explicitly invoked workflow shortcut. Prefer a skill unless the user wants manual invocation only.
  • AGENTS.md / CLAUDE.md / rules: always-on or path-scoped instruction. Read references/instructions.md.
  • Cross-platform migration: preserving behavior across Claude, Codex, Cursor, and OpenCode. Read the relevant platform files in references/platforms/.

If the user names a target platform for a skill, command, or instruction file, load only that platform reference. Do not create a custom agent or platform mirror unless the user explicitly requests a policy reversal.

Workflow

  1. Inventory first

    • Use rg --files to find existing .agents/skills, .claude, .codex, .cursor, .opencode, AGENTS.md, and CLAUDE.md files.
    • For platform-specific formats, read the bundled files under references/platforms/ before consulting external docs. Treat those files as the first source of truth for Claude, Codex, Cursor, and OpenCode harness layout.
    • Check for duplicate or superseded skills/agents before adding new ones.
    • Prefer updating the existing artifact when the behavior belongs to an existing workflow.
  2. Normalize the learning

    • Convert anecdotes into reusable guidance: trigger, problem, correct action, fallback, verification.
    • Remove session-specific IDs, PR numbers, or temporary paths unless they are part of an example that teaches the pattern.
    • Keep wording direct and operational.
  3. Pick the narrowest home

    • Put durable repo-wide constraints in AGENTS.md or scoped AGENTS.md.

    • Put task workflows in .agents/skills/<name>/SKILL.md.

    • Put deterministic logic in scripts/ when agents keep retyping fragile shell/API sequences.

    • Avoid creating multiple aliases for the same behavior.

    • Separate independent policy changes: Keep factual instruction updates and CI changes required by a feature in that feature's PR. Use a separate initiative for independent workflow-policy changes unless the user requests a combined PR. Classify changes by purpose, not path.

  4. Preserve progressive disclosure

    • Keep SKILL.md concise.
    • Move platform tables, long examples, templates, and edge-case notes to references/.
    • Reference each supporting file explicitly from the main skill so future agents know when to load it.
    • Review word and byte counts as well as line counts. Do not join paragraphs to satisfy a line limit. Move specialized procedures into references with explicit loading conditions. Keep each rule in one authoritative location.
  5. Edit and validate

    • Use apply_patch for file edits.
    • Validate markdown/frontmatter shape with targeted checks:
      git diff --check -- <changed-files>
      rg -n "old-skill|old-agent|stale-command" .agents AGENTS.md CLAUDE.md
      
    • Load references/validation.md for the shared harness test, lint, whitespace, line-budget, and pre-commit commands.
    • For executable script changes, run syntax checks and a focused dry run or mocked command when possible.
  6. Report

    • Name each artifact changed.
    • State why the instruction belongs there.
    • Mention validation run and any bundled platform references consulted.

Guardrails

  • Do not blindly copy upstream examples. Adapt model names, package managers, commands, paths, and verification steps to Kandev.
  • Do not add always-on instructions for rare workflows; use skills or commands.
  • Keep the single-session model policy intact unless the user explicitly asks to change it and accepts the cost/context trade-off.
  • Do not keep deprecated/replaced skills around without a clear compatibility reason.
  • Do not web-search platform formats by default. Use external docs only when the bundled reference is missing the needed detail, conflicts with files already in the repo, or the user explicitly asks for latest/current upstream behavior; if that happens, say why before browsing.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

acp-debug

免费

Debug an ACP agent CLI by spawning it, speaking raw JSON-RPC, and capturing every frame to a JSONL file. Use when the user asks to probe an agent's capabilities, compare agents, test a prompt against an agent, inspect raw ACP wire frames, or investigate why an agent fails to initialize.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10242026年10月26日 更新

Add a new third-party integration (Jira/Linear-style) — per-workspace credentials, 90s auth-health poller, settings page, link/import buttons. Use when scaffolding a new external service integration.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10242026年10月26日 更新

Delete local branches whose remote has been deleted ([gone]), including their worktrees. Use for branch cleanup after merging PRs.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10242026年10月26日 更新

Review changed code for quality, security, and architecture compliance. Use only when the user explicitly requests local review or a PR finding requires it.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10242026年10月26日 更新

commit

免费

Stage and commit changes using Conventional Commits. Use when there are dirty/staged files to commit, the user says "commit", or before pushing a PR.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10242026年10月26日 更新

Curate the right project context before coding or debugging. Use when starting a new session, switching areas of the codebase, output quality is drifting, a task spans backend/frontend/docs, or external instructions need to be reconciled with Kandev conventions.

中文简介正在准备中。当前显示原文说明。

kdlbs/kandev10242026年10月26日 更新

查看 kdlbs 的全部技能

报告此技能的问题