[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M77K3HDSRFP6VHX3N8RMF4KW":3,"skill-same:01M77K3HDSRFP6VHX3N8RMF4KW":53},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":33,"install":34,"resources":46},"01M77K3HDSRFP6VHX3N8RMF4KW","skill-promote",null,"Promote trace-driven improvements from the installed skill copy back to the shared Harnessy source.","Flow-Research\u002Fharnessy-v2","Flow-Research","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F204254796?v=4","01M6GVJZH9ZV0XGZTVBJRNW5BQ","Flow Research","01M77JYBHV7WQEBVS6R0AQ4YT6",13,"MIT","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002Ftools\u002Fflow-install\u002Fskills\u002Fskill-promote\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: skill-promote\ndescription: Promote trace-driven improvements from the installed skill copy back to the shared Harnessy source.\ndisable-model-invocation: true\nallowed-tools: Read, Write, Edit, Bash, Grep, Glob\nargument-hint: \"\u003Cskill-name> [--dry-run] [--all]\"\n---\n\n# Skill Promote — Sync Improvements to Shared Source\n\n## Purpose\n\nAfter `\u002Fskill-improve` applies changes to the installed copy at `~\u002F.agents\u002Fskills\u002F\u003Cskill-name>\u002F`, those improvements only exist locally. This skill promotes them back to the shared Harnessy source at `tools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F` so they become permanent and distributable.\n\n## Inputs\n\n- `skill-name` — the skill to promote (or `--all` to check all skills)\n- `--dry-run` — show what would change without applying\n- `--all` — scan all shared Harnessy skills for unpromoted improvements\n\nTemplate paths are resolved from `${AGENTS_SKILLS_ROOT}\u002Fskill-promote\u002F`.\n\n## Steps\n\n### 1. Detect unpromoted improvements\n\nCompare the installed and source versions:\n\n```bash\npython3 \"${AGENTS_SKILLS_ROOT}\u002F_shared\u002Fpromote_check.py\" check \\\n    --skill \"\u003Cskill-name>\" \\\n    --installed-root \"${AGENTS_SKILLS_ROOT}\" \\\n    --source-root \"\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\"\n```\n\nThe script compares `manifest.yaml` versions at both paths. If installed version > source version, improvements exist that haven't been promoted.\n\nAlso read `~\u002F.agents\u002Ftraces\u002F\u003Cskill-name>\u002Fimprovements.ndjson` to identify which specific improvements are pending.\n\nIf no unpromoted improvements exist, report \"No unpromoted improvements for `\u003Cskill-name>`.\" and stop.\n\n### 2. Resolve Harnessy repo path\n\nFind the Harnessy repo root. Check in order:\n1. Current working directory — if it contains `tools\u002Fflow-install\u002Fskills\u002F`, use it\n2. `$FLOW_REPO_ROOT` environment variable\n3. `$HOME\u002F.cache\u002Fharnessy\u002F` (cached installer source)\n\nIf the Harnessy repo can't be found, report the error and ask the user to cd into it or set `FLOW_REPO_ROOT`.\n\n### 3. Diff installed vs source\n\nFor the skill being promoted, diff all files:\n\n```bash\ndiff -rq \"${AGENTS_SKILLS_ROOT}\u002F\u003Cskill-name>\u002F\" \"\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F\"\n```\n\nPresent the diff to the user with context from `improvements.ndjson`:\n\n```\nUnpromoted improvements for issue-flow (installed: 0.8.3, source: 0.8.0):\n\n  imp_20260410_001 (2026-04-10): Added mobile\u002Fresponsive requirement to PRD phase\n    Evidence: 3 traces, pattern \"mobile experience\" in 2\u002F3\n    File: commands\u002Fissue-flow.md, section: Phase 2 — PRD\n\n  imp_20260412_001 (2026-04-12): Enforce measurable acceptance criteria\n    Evidence: 2 traces, category UNCLEAR_CRITERIA\n    File: commands\u002Fissue-flow.md, section: Phase 2 — PRD\n\nFiles changed:\n  M commands\u002Fissue-flow.md\n  M manifest.yaml\n```\n\nIf `--dry-run`, stop here.\n\n### 4. Confirm with user\n\nAsk: \"Apply these improvements to the shared Harnessy source? (yes \u002F no)\"\n\n### 5. Apply the promotion\n\nFor each changed file, copy from installed to source:\n\n```bash\ncp \"${AGENTS_SKILLS_ROOT}\u002F\u003Cskill-name>\u002F\u003Cfile>\" \"\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F\u003Cfile>\"\n```\n\n### 6. Stage and show the diff\n\nStage the changes in the Harnessy repo:\n\n```bash\ngit add \"tools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F\"\ngit diff --cached --stat\n```\n\nShow the user the staged diff for final review.\n\n### 7. Suggest commit and sync\n\nDo NOT commit automatically. Instead, suggest:\n\n```\nChanges staged in the Harnessy repo. Recommended next steps:\n\n1. Review: git diff --cached\n2. Commit:\n   git commit -m \"improve(\u003Cskill-name>): promote trace-driven improvements v\u003Cold> → v\u003Cnew>\n\n   Improvements promoted from installed copy based on decision trace evidence:\n   - \u003Cimp_id>: \u003Csummary>\n   - \u003Cimp_id>: \u003Csummary>\n\n   Trace evidence: \u003CN> traces across \u003CM> runs, patterns: \u003Clist>\"\n\n3. Push and sync:\n   - Push to remote branch\n   - Use \u002Fcontext-sync or manual PR for review\n```\n\n### 8. Mark improvements as promoted\n\nAfter the user confirms the commit happened, update `~\u002F.agents\u002Ftraces\u002F\u003Cskill-name>\u002Fimprovements.ndjson` by appending a promotion record:\n\n```json\n{\n  \"type\": \"promotion\",\n  \"timestamp\": \"\u003CISO 8601>\",\n  \"skill\": \"\u003Cskill-name>\",\n  \"improvements_promoted\": [\"imp_20260410_001\", \"imp_20260412_001\"],\n  \"promoted_to_version\": \"0.8.3\",\n  \"commit_branch\": \"\u003Cbranch>\"\n}\n```\n\n## `--all` mode\n\nWhen invoked with `--all`:\n\n1. Scan every skill directory under `${AGENTS_SKILLS_ROOT}\u002F` that also exists under `\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\u002F`\n2. Compare versions\n3. Report a summary table:\n\n```\nSkill               Installed  Source  Unpromoted\nissue-flow          0.8.3      0.8.0  3 improvements\ncode-review         0.2.1      0.2.1  —\nprd                 0.3.0      0.2.0  1 improvement\n```\n\n4. Ask which skills to promote (all \u002F specific names \u002F none)\n\n## Decision Trace Protocol\n\nThis skill participates in the skill evolution system by capturing decision traces at gate resolutions and consulting accumulated feedback.\n\n### Trace Consultation (short loop)\n\nBefore executing any step with a quality or human gate, query accumulated decision traces:\n\n```bash\npython3 \"${AGENTS_SKILLS_ROOT}\u002F_shared\u002Ftrace_query.py\" recent \\\n    --skill \"skill-promote\" --gate \"\u003Cgate_name>\" --limit 5 --min-loops 1\n```\n\nIf patterns or recent feedback exist, incorporate them as additional constraints. Do not cite traces to the user unless asked.\n\n### Trace Capture (after gate resolution)\n\nAfter every gate resolves, capture a decision trace:\n\n```bash\npython3 \"${AGENTS_SKILLS_ROOT}\u002F_shared\u002Ftrace_capture.py\" capture \\\n    --skill \"skill-promote\" \\\n    --gate \"\u003Cgate_name>\" --gate-type \"\u003Chuman|quality>\" \\\n    --outcome \"\u003Capproved|rejected|passed|failed>\" \\\n    --refinement-loops \u003CN> \\\n    [--feedback \"\u003Cuser's feedback text>\"] \\\n    [--category \u003CCATEGORY>]\n```\n\n### Post-Run Retrospective\n\nAfter completion, ask: **\"Any feedback on this skill-promote run? (skip to finish)\"**\nIf provided, capture via trace_capture.py with gate \"run_retrospective\" and gate-type \"retrospective\".\n\n## Output\n\n- Diff summary with improvement evidence\n- Staged changes in Harnessy repo (not committed)\n- Suggested commit message with trace evidence\n- Promotion record in improvements.ndjson\n","# Skill Promote — Sync Improvements to Shared Source\n\n## Purpose\n\nAfter `\u002Fskill-improve` applies changes to the installed copy at `~\u002F.agents\u002Fskills\u002F\u003Cskill-name>\u002F`, those improvements only exist locally. This skill promotes them back to the shared Harnessy source at `tools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F` so they become permanent and distributable.\n\n## Inputs\n\n- `skill-name` — the skill to promote (or `--all` to check all skills)\n- `--dry-run` — show what would change without applying\n- `--all` — scan all shared Harnessy skills for unpromoted improvements\n\nTemplate paths are resolved from `${AGENTS_SKILLS_ROOT}\u002Fskill-promote\u002F`.\n\n## Steps\n\n### 1. Detect unpromoted improvements\n\nCompare the installed and source versions:\n\n```bash\npython3 \"${AGENTS_SKILLS_ROOT}\u002F_shared\u002Fpromote_check.py\" check \\\n    --skill \"\u003Cskill-name>\" \\\n    --installed-root \"${AGENTS_SKILLS_ROOT}\" \\\n    --source-root \"\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\"\n```\n\nThe script compares `manifest.yaml` versions at both paths. If installed version > source version, improvements exist that haven't been promoted.\n\nAlso read `~\u002F.agents\u002Ftraces\u002F\u003Cskill-name>\u002Fimprovements.ndjson` to identify which specific improvements are pending.\n\nIf no unpromoted improvements exist, report \"No unpromoted improvements for `\u003Cskill-name>`.\" and stop.\n\n### 2. Resolve Harnessy repo path\n\nFind the Harnessy repo root. Check in order:\n1. Current working directory — if it contains `tools\u002Fflow-install\u002Fskills\u002F`, use it\n2. `$FLOW_REPO_ROOT` environment variable\n3. `$HOME\u002F.cache\u002Fharnessy\u002F` (cached installer source)\n\nIf the Harnessy repo can't be found, report the error and ask the user to cd into it or set `FLOW_REPO_ROOT`.\n\n### 3. Diff installed vs source\n\nFor the skill being promoted, diff all files:\n\n```bash\ndiff -rq \"${AGENTS_SKILLS_ROOT}\u002F\u003Cskill-name>\u002F\" \"\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F\"\n```\n\nPresent the diff to the user with context from `improvements.ndjson`:\n\n```\nUnpromoted improvements for issue-flow (installed: 0.8.3, source: 0.8.0):\n\n  imp_20260410_001 (2026-04-10): Added mobile\u002Fresponsive requirement to PRD phase\n    Evidence: 3 traces, pattern \"mobile experience\" in 2\u002F3\n    File: commands\u002Fissue-flow.md, section: Phase 2 — PRD\n\n  imp_20260412_001 (2026-04-12): Enforce measurable acceptance criteria\n    Evidence: 2 traces, category UNCLEAR_CRITERIA\n    File: commands\u002Fissue-flow.md, section: Phase 2 — PRD\n\nFiles changed:\n  M commands\u002Fissue-flow.md\n  M manifest.yaml\n```\n\nIf `--dry-run`, stop here.\n\n### 4. Confirm with user\n\nAsk: \"Apply these improvements to the shared Harnessy source? (yes \u002F no)\"\n\n### 5. Apply the promotion\n\nFor each changed file, copy from installed to source:\n\n```bash\ncp \"${AGENTS_SKILLS_ROOT}\u002F\u003Cskill-name>\u002F\u003Cfile>\" \"\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F\u003Cfile>\"\n```\n\n### 6. Stage and show the diff\n\nStage the changes in the Harnessy repo:\n\n```bash\ngit add \"tools\u002Fflow-install\u002Fskills\u002F\u003Cskill-name>\u002F\"\ngit diff --cached --stat\n```\n\nShow the user the staged diff for final review.\n\n### 7. Suggest commit and sync\n\nDo NOT commit automatically. Instead, suggest:\n\n```\nChanges staged in the Harnessy repo. Recommended next steps:\n\n1. Review: git diff --cached\n2. Commit:\n   git commit -m \"improve(\u003Cskill-name>): promote trace-driven improvements v\u003Cold> → v\u003Cnew>\n\n   Improvements promoted from installed copy based on decision trace evidence:\n   - \u003Cimp_id>: \u003Csummary>\n   - \u003Cimp_id>: \u003Csummary>\n\n   Trace evidence: \u003CN> traces across \u003CM> runs, patterns: \u003Clist>\"\n\n3. Push and sync:\n   - Push to remote branch\n   - Use \u002Fcontext-sync or manual PR for review\n```\n\n### 8. Mark improvements as promoted\n\nAfter the user confirms the commit happened, update `~\u002F.agents\u002Ftraces\u002F\u003Cskill-name>\u002Fimprovements.ndjson` by appending a promotion record:\n\n```json\n{\n  \"type\": \"promotion\",\n  \"timestamp\": \"\u003CISO 8601>\",\n  \"skill\": \"\u003Cskill-name>\",\n  \"improvements_promoted\": [\"imp_20260410_001\", \"imp_20260412_001\"],\n  \"promoted_to_version\": \"0.8.3\",\n  \"commit_branch\": \"\u003Cbranch>\"\n}\n```\n\n## `--all` mode\n\nWhen invoked with `--all`:\n\n1. Scan every skill directory under `${AGENTS_SKILLS_ROOT}\u002F` that also exists under `\u003Cflow-repo>\u002Ftools\u002Fflow-install\u002Fskills\u002F`\n2. Compare versions\n3. Report a summary table:\n\n```\nSkill               Installed  Source  Unpromoted\nissue-flow          0.8.3      0.8.0  3 improvements\ncode-review         0.2.1      0.2.1  —\nprd                 0.3.0      0.2.0  1 improvement\n```\n\n4. Ask which skills to promote (all \u002F specific names \u002F none)\n\n## Decision Trace Protocol\n\nThis skill participates in the skill evolution system by capturing decision traces at gate resolutions and consulting accumulated feedback.\n\n### Trace Consultation (short loop)\n\nBefore executing any step with a quality or human gate, query accumulated decision traces:\n\n```bash\npython3 \"${AGENTS_SKILLS_ROOT}\u002F_shared\u002Ftrace_query.py\" recent \\\n    --skill \"skill-promote\" --gate \"\u003Cgate_name>\" --limit 5 --min-loops 1\n```\n\nIf patterns or recent feedback exist, incorporate them as additional constraints. Do not cite traces to the user unless asked.\n\n### Trace Capture (after gate resolution)\n\nAfter every gate resolves, capture a decision trace:\n\n```bash\npython3 \"${AGENTS_SKILLS_ROOT}\u002F_shared\u002Ftrace_capture.py\" capture \\\n    --skill \"skill-promote\" \\\n    --gate \"\u003Cgate_name>\" --gate-type \"\u003Chuman|quality>\" \\\n    --outcome \"\u003Capproved|rejected|passed|failed>\" \\\n    --refinement-loops \u003CN> \\\n    [--feedback \"\u003Cuser's feedback text>\"] \\\n    [--category \u003CCATEGORY>]\n```\n\n### Post-Run Retrospective\n\nAfter completion, ask: **\"Any feedback on this skill-promote run? (skip to finish)\"**\nIf provided, capture via trace_capture.py with gate \"run_retrospective\" and gate-type \"retrospective\".\n\n## Output\n\n- Diff summary with improvement evidence\n- Staged changes in Harnessy repo (not committed)\n- Suggested commit message with trace evidence\n- Promotion record in improvements.ndjson\n",{"name":5,"description":7,"allowed-tools":24,"argument-hint":25,"disable-model-invocation":26},"Read, Write, Edit, Bash, Grep, Glob","\u003Cskill-name> [--dry-run] [--all]",true,"main","437c399aef1913dab00310feea6d7962d3684949","packages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002Ftools\u002Fflow-install\u002Fskills\u002Fskill-promote",6,"https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2","https:\u002F\u002Fgithub.com\u002FFlow-Research","2026-11-12 09:49:54",{"source":8,"skillName":5,"commands":35,"prompt":45,"zipAvailable":26},[36,39,42],{"tool":37,"command":38},"npx","npx skills add Flow-Research\u002Fharnessy-v2 --skill skill-promote",{"tool":40,"command":41},"bunx","bunx skills add Flow-Research\u002Fharnessy-v2 --skill skill-promote",{"tool":43,"command":44},"pnpm","pnpm dlx skills add Flow-Research\u002Fharnessy-v2 --skill skill-promote","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002Ftools\u002Fflow-install\u002Fskills\u002Fskill-promote\u002FSKILL.md",[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"manifest.yaml","REFERENCE","参考文档",917,"https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcapability-harnessy-v1-full\u002Fresources\u002Fsource\u002Ftools\u002Fflow-install\u002Fskills\u002Fskill-promote\u002Fmanifest.yaml",[54,61,68,75,82,89],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M77K5PBWD2KS3QRTWR7VHHXB","personal-knowledge","Save sources to the private Harnessy learning library, sync delivered readings, answer questions from saved evidence, browse its wiki, and generate weekly learning reviews.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fharnessy-core\u002Fresources\u002Fskills\u002Fpersonal-knowledge\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M77K5MNRTVCPCES38J7PGJCP","valid-skill","A valid skill for testing purposes.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fvalid-skill\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M77K5HQMHXFVQAWSJ9X90BDX","unknown-field","A skill with an unknown frontmatter field.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Funknown-field\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M77K5GNEGDBJ51MNS14A4N46","nested-child","Nested skill should be ignored.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002Fnested-child\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M77K5DY7RPPCFCEXV3AFH0R5","root-skill-preferred","Root skill should win.","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Froot-skill-preferred\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M77K5CYV52QQ7CWV1TAPG63J","no-frontmatter","https:\u002F\u002Fgithub.com\u002FFlow-Research\u002Fharnessy-v2\u002Fblob\u002Fmain\u002Fpackages\u002Fcoding-agent\u002Ftest\u002Ffixtures\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[]]