[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CWEC1DAE1BVGQX508075KK":3,"skill-same:01M6CWEC1DAE1BVGQX508075KK":71},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":20,"frontMatter":21,"refName":22,"commitSha":23,"skillDirectory":24,"forksCount":25,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":28,"ownerDescription":29,"updatedAt":30,"install":31,"resources":44},"01M6CWEC1DAE1BVGQX508075KK","commands",null,"iyaki\u002Fspecralph","iyaki","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F18445228?v=4","01M6CWDKVQM9A2B94EYA64V7TJ","Ivan Yakimovicz","01M6CWDKZP8ZEEA3459CSK9ZKP",6,"MIT","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Fskill.md",[],[5],"2026-11-10 10:12:30",false,"# Skill Command\n\nStatus: Proposed\n\n## Overview\n\n### Purpose\n\nDistribute the bundled prompt-authoring skill (`specralph-prompts`) into projects, so AI agents working there can discover specralph prompt conventions (file location, structure, completion signal) without external documentation.\n\n### Goals\n\n- Specify the `ralph skill install [dir]` subcommand.\n- Specify the skill source: embedded in the binary at build time from repository source files, so an installation always matches the installing binary's version.\n- Specify overwrite behavior and output.\n\n### Non-Goals\n\n- Network downloads (GitHub fetches, version pinning, update checks) — the binary is the single source.\n- Skill management beyond install: no `list`, `uninstall`, or per-agent format conversion.\n- Lock-file integration with external skill managers (`.skill-lock.json` files are not modified).\n- Changes to prompt resolution or authoring behavior (see [prompts-authoring.md](prompts-authoring.md)).\n\n### Scope\n\n- In scope: `skill` command group with a single `install` subcommand.\n- Out of scope: prompt authoring contract content (owned by the skill file itself).\n\n## Architecture\n\n### Module\u002Fpackage layout (tree format)\n\n```\n.agents\u002F\n  skills\u002F\n    specralph-prompts\u002F\n      SKILL.md            (canonical skill source, committed)\ninternal\u002F\n  cli\u002F\n    skill.go              (command; embeds the skill at build time)\n```\n\n### Data flow summary\n\n1. Build embeds `.agents\u002Fskills\u002Fspecralph-prompts\u002FSKILL.md` into the binary (build-time step; the exact embedding mechanism is an implementation detail — Go's `embed` cannot read dot-directories, so the build may copy or relocate the file into the embedding package).\n2. `ralph skill install [dir]` writes the embedded skill to `\u003Cdir>\u002Fspecralph-prompts\u002FSKILL.md`.\n\n## Data model\n\n### Core Entities\n\n- None beyond the skill file itself: one embedded asset, one output path.\n\n## Workflows\n\n### Install the skill (happy path)\n\n1. User invokes `ralph skill install [dir]`.\n2. `\u003Cdir>` defaults to `.agents\u002Fskills` when omitted.\n3. Target path is `\u003Cdir>\u002Fspecralph-prompts\u002FSKILL.md`.\n4. If the target exists and `--force` is not set, return an error: `skill already exists at \u003Ctarget> (use --force to overwrite)`.\n5. Create intermediate directories as needed (`0755`).\n6. Write the embedded skill content (`0644`).\n7. Print to stdout: `Installed specralph-prompts skill to \u003Ctarget>`. Exit code 0.\n\n### Overwrite an existing installation\n\n1. User invokes `ralph skill install [dir] --force`.\n2. Existing target file is overwritten with the embedded content. No backup is kept (the binary is the source of truth; local edits are intentionally discarded).\n\n### Install failure\n\n1. Target directory cannot be created or written (permissions, read-only path).\n2. Command returns an error wrapping the cause; exit code non-zero. No partial file is left behind.\n\n## APIs\n\n- None. Local file operation only.\n\n## Configuration\n\n- None. The command is config-independent: it does not load `ralph.toml`, and the prompts-dir setting is unrelated to the install target.\n\n## Command Collision\n\n`skill` is a registered subcommand, so it shadows a prompt file named `skill.md`: invoking `ralph skill` runs the subcommand, and the prompt requires `ralph run skill`. This follows the collision rules defined in [run.md](run.md).\n\n## Permissions\n\n- Write access to the target directory.\n\n## Security Considerations\n\n- The installed content is the static, embedded skill text; no user input is reflected into the file path beyond `\u003Cdir>`.\n- Path arguments are used as given; no upward-traversal sanitization beyond what `filepath.Join` semantics provide (the user already has filesystem write access to wherever they point the command).\n\n## Dependencies\n\n- Standard library plus the build-time embedding of the skill asset. No new external dependencies.\n\n## Open Questions \u002F Risks\n\n- Should a successful install print a hint about which agents read `.agents\u002Fskills` (e.g. \"supported by skills-aware agents\")? Deferred until an agent-support matrix exists.\n- Repos using an external skill manager may prefer registering the skill manually; the lock files of those tools are intentionally untouched.\n\n## Verifications\n\n- `ralph skill install` creates `.agents\u002Fskills\u002Fspecralph-prompts\u002FSKILL.md` in the working directory and prints the install path.\n- `ralph skill install \u002Ftmp\u002Fx` creates `\u002Ftmp\u002Fx\u002Fspecralph-prompts\u002FSKILL.md`.\n- Installing twice without `--force` fails with `skill already exists at \u003Ctarget> (use --force to overwrite)`, leaving the original file untouched.\n- Installing twice with `--force` succeeds and replaces the content with the embedded version.\n- The installed file passes `skill-creator` validation (`quick_validate.py`): valid frontmatter, kebab-case name `specralph-prompts`, description without angle brackets and under 1024 characters.\n- `ralph skill --help` lists the `install` subcommand.\n\n## Related Specifications\n\n- [prompts-authoring.md](prompts-authoring.md) — the authoring workflow the skill teaches (`prompts guide`, `prompts validate`).\n- [run.md](run.md) — command\u002Fprompt name collision rules.\n- [help.md](help.md) — command discoverability.\n",{},"main","ff800856a182518c165b7d3edc898200e74d5906","specs\u002Fcommands",0,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph","https:\u002F\u002Fgithub.com\u002Fiyaki","https:\u002F\u002Fiyaki.ar","Engineering Leader & Maker | Tech Generalist with 10+ years of experiece","2026-11-14 08:43:12",{"source":7,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add iyaki\u002Fspecralph --skill commands",{"tool":37,"command":38},"bunx","bunx skills add iyaki\u002Fspecralph --skill commands",{"tool":40,"command":41},"pnpm","pnpm dlx skills add iyaki\u002Fspecralph --skill commands","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Fskill.md",true,[45,51,55,59,63,67],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"help.md","REFERENCE","参考文档",5222,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Fhelp.md",{"path":52,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":53,"sourceHtmlUrl":54},"init.md",10286,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Finit.md",{"path":56,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":57,"sourceHtmlUrl":58},"prompts-authoring.md",7442,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Fprompts-authoring.md",{"path":60,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":61,"sourceHtmlUrl":62},"prompts.md",7811,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Fprompts.md",{"path":64,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":65,"sourceHtmlUrl":66},"run.md",5029,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Frun.md",{"path":68,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":69,"sourceHtmlUrl":70},"version.md",3403,"https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Fspecs\u002Fcommands\u002Fversion.md",[72,99,104,130,151,168],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M6CWE6QMY0VF75JDSC07CS82","specralph-prompts","Author, install, and validate custom prompt files for specralph (the ralph CLI agentic loop runner). Use this skill whenever creating or editing ralph prompt files, preparing tasks to run with ralph run, writing prompts that must stop the loop via the completion signal, or debugging a ralph loop that never stops or stops too early.","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002Finternal\u002Fcli\u002Fskill.md",[],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],"specralph prompts","prompts","runner","files","ralph loop","never","stop","writing","cli","agentic","validate","debugging","tasks","run","loop","ralph","editing","prompt","install","use",{"skillNo":100,"name":74,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":18},"01M6CWE4C6DK17C3S0C68SBZEN","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fspecralph-prompts\u002FSKILL.md",[],[80,79],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":18},"01M6CWE0NC3W3AAHSN55FKG1RP","spec-creator","Create, update, or review engineering-grade technical specifications for a codebase, following spec-driven development (SDD) conventions. Use whenever the user asks for a spec, requirements or design doc, feature specification, API contract, data model, or wants a feature planned on paper before implementation — including phrases like \"write a spec for X\", \"draft the spec first\", \"update the specs\", or any spec-first workflow (e.g. with Ralph). Produces implementation-ready, testable specs using the bundled SPEC_TEMPLATE.md.","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fspec-creator\u002FSKILL.md",[],[111,112,113,114,115,116,117,118,94,119,120,121,122,123,124,125,126,127,128,129],"spec","spec creator","model","sdd","api contract","specification","ready","write","template","design doc","api","doc","data","update","design","create","workflow","review","development",{"skillNo":131,"name":132,"nameZh":6,"description":133,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":134,"licenseFileUrl":135,"sourceHtmlUrl":136,"categories":137,"keywords":138,"publishedAt":18},"01M6CWDWGGY4PFB8MQ4F620XYA","skill-creator","Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.","Apache-2.0","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-creator\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fskill-creator\u002FSKILL.md",[],[139,140,141,142,143,98,144,145,146,92,126,147,148,149,150],"skill creator","analysis","existing skill","optimize","evals","edit","improve","benchmark","variance analysis","test","run evals","performance",{"skillNo":152,"name":153,"nameZh":6,"description":154,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":155,"categories":156,"keywords":157,"publishedAt":18},"01M6CWDS8D23CXB1WYFZBYNBAJ","agent-spec-creation","Create or update agent integration specs before implementation. Use this whenever a request is about defining how a new or existing agent should behave in Ralph.","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagent-spec-creation\u002FSKILL.md",[],[158,159,111,126,160,161,162,163,98,94,164,165,124,166,167],"creation","agent spec creation","about","behave","implementation","update agent","how","integration","Existing","request",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":174,"publishedAt":18},"01M6CWDP6PYR2TKR6DNKN8FE1Q","agent-implementation","Implement or update support for an underlying agent CLI in Ralph after specs are defined, including factory wiring and tests.","https:\u002F\u002Fgithub.com\u002Fiyaki\u002Fspecralph\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fagent-implementation\u002FSKILL.md",[],[162,175,176,177,178,179,94,124,180,181,87],"agent implementation","wiring","for","tests","factory","support","implement"]