Agent Skillskdlbs/kandev › harness-improvement

harness-improvement

GitHub

将AI会话经验转化为持久化的开发环境配置,包括更新技能、代理、命令及跨平台指令文件。

.agents/skills/harness-improvement/SKILL.md kdlbs/kandev

Trigger Scenarios

用户要求记录会话经验或最佳实践 请求创建或更新SKILL.md等Agent配置文件 需要跨平台迁移或同步AI工具配置

Install

npx skills add kdlbs/kandev --skill harness-improvement -g -y
More Options

Non-standard path

npx skills add https://github.com/kdlbs/kandev/tree/main/.agents/skills/harness-improvement -g -y

Use without installing

npx skills use kdlbs/kandev@harness-improvement

指定 Agent (Claude Code)

npx skills add kdlbs/kandev --skill harness-improvement -a claude-code -g -y

安装 repo 全部 skill

npx skills add kdlbs/kandev --all -g -y

预览 repo 内 skill

npx skills add kdlbs/kandev --list

SKILL.md

Frontmatter
{
    "name": "harness-improvement",
    "description": "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."
}

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.

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.
  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.
  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.

Version History

  • 1578843 Current 2026-08-16 08:47

    重构了Subagent/Agent的处理逻辑,明确默认跨平台同步策略,并调整了相关引用文件的加载顺序。

  • b4239d8 2026-07-24 17:32

Same Skill Collection

.agents/skills/acp-debug/SKILL.md
.agents/skills/add-integration/SKILL.md
.agents/skills/clean-branches/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/commit/SKILL.md
.agents/skills/context-engineering/SKILL.md
.agents/skills/create-kandev-plugin/SKILL.md
.agents/skills/debug/SKILL.md
.agents/skills/docs-maintainer/SKILL.md
.agents/skills/e2e/SKILL.md
.agents/skills/fix/SKILL.md
.agents/skills/interview-me/SKILL.md
.agents/skills/plan/SKILL.md
.agents/skills/planner-orchestration/SKILL.md
.agents/skills/playwright-cli/SKILL.md
.agents/skills/pr-fixup/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/product-demo-seeding/SKILL.md
.agents/skills/product-video-capture/SKILL.md
.agents/skills/push/SKILL.md
.agents/skills/qa/SKILL.md
.agents/skills/release/SKILL.md
.agents/skills/runtime-feature-flags/SKILL.md
.agents/skills/simplify/SKILL.md
.agents/skills/spec-driven-development/SKILL.md
.agents/skills/spec/SKILL.md
.agents/skills/tdd/SKILL.md
.agents/skills/using-agent-skills/SKILL.md
.agents/skills/verify/SKILL.md
.agents/skills/mobile-parity/SKILL.md
.agents/skills/record/SKILL.md

Metadata

Files
0
Version
1578843
Hash
8e69a853
Indexed
2026-07-24 17:32

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 20:12
浙ICP备14020137号-1 $mapa de visitantes$