[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M753CHPJDEY8T2V222Y9W1AH":3,"skill-same:01M753CHPJDEY8T2V222Y9W1AH":64},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":25,"commitSha":26,"skillDirectory":27,"forksCount":28,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M753CHPJDEY8T2V222Y9W1AH","create-repo-skill",null,"Creates a repo-specific operating Agent Skill for DisCo Researcher from a local repository by inspecting source files and an installed or auto-prepared, backend-aware Python package environment. Use when the user asks to create a skill for a repo, generate repo-specific skills, analyze a local Python package, or build a DisCo skill that may also be exported to compatible agents. If the user gives only a repo path, analyze the repository structure and native tests\u002Fexamples first, confirm the extraction scope, then use prepare-repo-skill-env to create and verify the minimum CPU\u002FGPU\u002Fbackend environment set required by that scope. If the request says auto decide, agent-confirm the extraction scope; if it says auto import, import only after successful verification with no unresolved required-backend block.","VectorSpaceLab\u002FAREX-Skill","VectorSpaceLab","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F180637102?v=4","01M7538C5WPSJGWF7KHR4EFZ9F","01M7538C6R2GFP53NPXTCZNBRT",351,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fcli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: create-repo-skill\ndescription: \"Creates a repo-specific operating Agent Skill for DisCo Researcher from a local repository by inspecting source files and an installed or auto-prepared, backend-aware Python package environment. Use when the user asks to create a skill for a repo, generate repo-specific skills, analyze a local Python package, or build a DisCo skill that may also be exported to compatible agents. If the user gives only a repo path, analyze the repository structure and native tests\u002Fexamples first, confirm the extraction scope, then use prepare-repo-skill-env to create and verify the minimum CPU\u002FGPU\u002Fbackend environment set required by that scope. If the request says auto decide, agent-confirm the extraction scope; if it says auto import, import only after successful verification with no unresolved required-backend block.\"\nmetadata:\n  disco-role: meta\n---\n\n# Create Repo Skill\n\n## Purpose\n\nUse this skill to create a high-quality, repo-specific operating Agent Skill for\nDisCo Researcher. The managed DisCo copy is the primary runtime destination; a\nuser may separately export it to Claude Code, Codex, or another compatible\nagent, but export is not required for DisCo to use it.\n\nRepo\u002Fpackage guidance is intentionally treated as a high-reuse operating graph: a self-contained skill for a versioned public package can support the same repository across many checkouts, projects, and research tasks. Its approved live destination is therefore the managed repo collection at `~\u002F.disco\u002Fagent\u002Fskills\u002Frepositories\u002Frepo-skills\u002F\u003Cskill-id>\u002F`, not the current project's `.agents\u002Fskills\u002F`. This is a specialized managed deployment: the import must also rebuild the sibling `repo-skills-router` in the same locked transaction, so never send repo output through the generic operating-graph importer.\n\nIf the user does not provide a repository path, use the current working\ndirectory as the target repository.\n\nThe user may delegate the manual decisions in this workflow. Treat phrases such\nas `auto decide`, `agent decide`, `decide the scope yourself`, `auto import`,\n`default import`, or `do not ask me to confirm scope\u002Fimport` as an explicit\ndecision policy for this create run. The policy has two independent parts:\n\n- `extractionScope: ask` by default, or `agent-decide` when the user delegates\n  scope approval.\n- `importAfterVerification: ask` by default, or `auto-import` when the user\n  delegates the final import decision.\n\nThis policy only skips the routine scope approval and final import approval. It\ndoes not authorize unsafe commands, broad dependency installation, mutation of a\nuser-provided environment that may break it, overwriting an existing skill, or\nimporting a skill that failed verification. `auto-import` also does not accept\nan unavailable or unverified required backend. A required-backend block must be\nresolved, removed by an explicitly narrowed extraction scope, or presented for\nan informed manual acceptance after final verification.\n\nThe user may also provide a temporary Python environment where the package from\nthat repository has already been installed for inspection. If the user does not\nprovide that environment, do not stop and ask for one. Defer automatic\nenvironment preparation until after repository structure analysis and either\nuser confirmation of the extraction scope or agent-confirmation under an\nexplicit `agent-decide` policy. Then use\n`prepare-repo-skill-env` to create, install, and verify the minimum private\ninspection environment set whose dependencies and backend variants cover the\nconfirmed directories, selected workflows, required native verification\ncandidates, and user requirements, and continue this workflow from the handoff.\nThe prepare-env skill should prefer Conda when available, use micromamba,\nvenv, or uv when appropriate, and execute environment creation, installation,\nand verification as explicit terminal commands. If no suitable manager or\nPython exists, it should make the required host-level runtime installation\nvisible and obtain authorization before performing it rather than invoking a\nbundled bootstrap helper.\n\nThe user may also provide a preferred generated-skill output path, a preferred\nreview\u002Ftest artifact output path, a preferred environment prefix for automatic\nenvironment preparation, the installed package name, known troubleshooting\nnotes, and extra extraction requirements. If no output path is provided,\ndefault to creating the generated skill under the repository's own `skills\u002F`\ndirectory. If that directory already exists, create a `disco\u002F` subdirectory\ninside it as the active skills root for DisCo-generated output.\n\nThe installed Python environment is required so the agent can inspect live APIs, function signatures, modules, imports, CLI entry points, and runtime behavior instead of relying only on source-code guesses. It can be provided by the user or prepared automatically via the prepare-env skill. Treat this environment as private research context. It must not appear in the generated repo skill.\n\n## Reference Map\n\nRead these references as the workflow reaches each stage:\n\n- [references\u002Finput-output-and-structure.md](references\u002Finput-output-and-structure.md): input collection, canonical skill ids, output path resolution, default runtime skill and `skills\u002Ftests\u002F` artifact locations, generated skill tree, and content placement rules.\n- [references\u002Frepository-evidence.md](references\u002Frepository-evidence.md): how to discover source roots, docs, examples, scripts, tests, configs, existing repo-local skills, extraction evidence maps, backend-classified native test\u002Fexample candidates, and the backend verification plan before extracting skills.\n- `..\u002Fprepare-repo-skill-env\u002FSKILL.md`: backend-aware environment preparation after repository structure analysis, including minimal dependency selection for the confirmed extraction scope, required-backend readiness, and existing-environment mutation safeguards.\n- `..\u002Fworkflow-authoring\u002FSKILL.md`: the canonical workflow script, structured args, prepared-environment, coverage, and recovery contract. Read it completely before the first `workflow` call in coordinated generation.\n- [references\u002Finstalled-package-inspection.md](references\u002Finstalled-package-inspection.md): read-only inspection of the user-provided or automatically prepared installed package environment and how to avoid leaking local environment details.\n- [references\u002Fplanning-and-writing.md](references\u002Fplanning-and-writing.md): sub-skill boundaries, coverage\u002Fdepth matrix, dynamic workflow generation, whole-skill integration gates, target file tree planning, generated `SKILL.md` frontmatter, references, scripts, and anti-patterns.\n- [..\u002Fverify-repo-skill\u002Fscripts\u002Fresolve_repo_license.mjs](..\u002Fverify-repo-skill\u002Fscripts\u002Fresolve_repo_license.mjs): resolves one GitHub `license.spdx_id` for the exact source commit and emits the required `NO_LICENSE` fallback\u002Freport.\n- `..\u002Fverify-repo-skill\u002FSKILL.md`: final assertion-backed usability test case generation, content-level self-refine, native repo test\u002Fexample verification, static verification, final coverage report, review package, handoff, and import readiness after this skill has created and integrated the runtime repo skill.\n\n## Required Workflow\n\nUse the agent's available todo or task-list mechanism for this workflow so the\nuser can see the current phase, especially during repository analysis,\nenvironment preparation, sub-skill generation, review, and handoff to\nverification. If the current agent has no todo tool, maintain a visible\nchecklist in the conversation.\n\n1. User request analysis:\n   Read [references\u002Finput-output-and-structure.md](references\u002Finput-output-and-structure.md). Identify the repository path, Python inspection environment if provided, preferred conda prefix if provided, skill output directory, review\u002Ftest artifact directory, extra extraction requirements, delegated decision policy (`extractionScope` and `importAfterVerification`), and any other information that can affect extraction. Use the current working directory when the repo path is omitted. Resolve the canonical skill id, active skills root, generated skill directory, artifact directory, and private default inspection prefix before writing files. If the user did not provide a usable Python inspection environment, do not prepare it yet; record the default prefix under `$DISCO_CODING_AGENT_DIR\u002Fenvs\u002F\u003Cchosen-skill-id>-inspection` when that variable is set, otherwise under `~\u002F.disco\u002Fagent\u002Fenvs\u002F\u003Cchosen-skill-id>-inspection`, and defer installation until after repository structure analysis confirms which directories will be used.\n2. Repository structure analysis:\n   Read [references\u002Frepository-evidence.md](references\u002Frepository-evidence.md). Inspect the repository tree, package metadata, source roots, docs, examples, scripts, tests, configs, and existing repo-local skills. Build a concise extraction evidence map that names directories to include and directories to exclude from later extraction context. Also build a native test\u002Fexample candidate map from repo-owned examples, tests, notebooks, CLI snippets, fixtures, and smoke scripts. Classify each candidate by workflow, safety, backend requirement (`cpu`, `cuda`, `rocm`, `mps`, accelerator-specific, or `any`), backend criticality (`required`, `optional`, or `alternative`), CPU substitution (`full`, `partial`, or `none`), dependency variant, hardware prerequisites, and verification expectation. After the extraction scope is confirmed, derive a backend verification plan for included workflows: required\u002Foptional backend coverage, minimum environment set, hardware probes, preparation smoke checks, final native cases, and the blocking consequence of unavailable required hardware. Separately build a source script inventory for repo-owned `scripts\u002F`, `tools\u002F`, `bin\u002F`, example scripts, and workflow helpers, classifying each useful script as copy, adapt, wrap, reference-only, or exclude with a concrete reason. Do not run native tests\u002Fexamples in this phase. If `extractionScope` is `ask`, ask the user whether the directory scope and backend plan are reasonable before continuing and incorporate any correction. If `extractionScope` is `agent-decide`, do not stop for routine approval; mark both as agent-confirmed, briefly report include\u002Fexclude and backend decisions to the user, record the decision mode and rationale under the review\u002Ftest artifact directory's `reports\u002Fintegration\u002F` subtree when practical, and continue.\n3. License resolution:\n   After the canonical GitHub repository identity and exact source commit for this\n   run are known, resolve the repository license once before sub-skill generation:\n\n   ```bash\n   node ..\u002Fverify-repo-skill\u002Fscripts\u002Fresolve_repo_license.mjs \\\n     --repository \u003Cowner\u002Frepository> \\\n     --source-commit \u003C40-hex-source-commit> \\\n     --json > \u003Cartifact-root>\u002Freports\u002Flicense-resolution.json\n   ```\n\n   Use the returned `value` for every root and sub-skill `SKILL.md`. A successful\n   non-empty `license.spdx_id` is authoritative, including `NOASSERTION`; missing\n   `gh`, authentication or API failures, 404, unparseable or missing values become\n   `license: NO_LICENSE`. Record repository, source commit, status, value, reason,\n   and updated file count under `reports\u002F`; do not include raw API responses or\n   credentials in runtime files. `NO_LICENSE` is a warning, not a legal\n   conclusion, and does not by itself block verification or import.\n4. Environment preparation:\n   Read and use `..\u002Fprepare-repo-skill-env\u002FSKILL.md`. Prepare or verify the Python inspection environment only after the repository structure analysis and backend verification plan are confirmed. Pass the included\u002Fexcluded directories, package metadata, backend-classified native candidate map, backend verification plan, and user extraction requirements into the install plan. Install the minimum environment set that satisfies every required backend for selected capabilities, not merely the smallest CPU-importable set. Usually one GPU-capable environment can cover CPU checks; use separate prefixes only when dependency variants conflict or an independent CPU fallback claim also requires verification. Do not install optional backend packages for excluded or unselected workflows. If the user provided an existing environment and verification shows that reinstalling, upgrading, or repairing packages may mutate or break it, ask before modifying that environment. If modification is not allowed, create a new private prefix when permitted. Continue automatically only from an `ok` handoff. If a required backend is unavailable, either narrow the extraction scope with user approval, stop with a failed handoff, or continue drafting only after the user explicitly accepts a `partial` handoff; carry that block forward and disable auto-import.\n5. Sub-skill structure generation:\n   Read [references\u002Finstalled-package-inspection.md](references\u002Finstalled-package-inspection.md) and [references\u002Fplanning-and-writing.md](references\u002Fplanning-and-writing.md). Use repository evidence plus installed-package inspection to plan only the sub-skill structure first: canonical sub-skill ids, responsibilities, boundaries, evidence sources, target files, expected references\u002Fscripts, source-script imports or adaptations owned by each sub-skill, troubleshooting references and failure modes each sub-skill must cover, native test\u002Fexample candidates relevant to each sub-skill, cross-references, and review rubrics. The main agent owns this structure and should optimize it for future usability, not for mirroring source folders mechanically. Do not write the detailed sub-skill content in this phase. Keep the planned overall generated skill shape compatible with this skill's existing root `SKILL.md`, `references\u002F`, `scripts\u002F`, and `sub-skills\u002F` structure.\n6. Coordinated skill generation:\n   Before the first `workflow` call, read `..\u002Fworkflow-authoring\u002FSKILL.md` completely. When running in DisCo, use the built-in `workflow` tool to coordinate generation. Keep the JavaScript `script` short and put complete, Markdown-rich sub-skill briefs in structured `args.jobs` or `args.briefs`; never paste those briefs into a template literal in the script. Each planned sub-skill id must appear in the relevant phase and in each `agent()` call's `subSkill` option, making progress visible while subagents write and revise sub-skills. In other agents, use the same process with whatever task, subagent, or manual sequencing tools are available. Each subagent prompt must include a complete scope-specific brief from the structure plan: target sub-skill id, exact `sub-skills\u002F\u003Cid>\u002F` output subtree, frontmatter name requirement, responsibility, included and excluded capabilities, evidence files to inspect, installed-package facts to verify, required references\u002Fscripts, source scripts to copy\u002Fadapt\u002Fwrap or explicitly exclude, troubleshooting failure modes to cover, links to create, related native test\u002Fexample candidates, and the acceptance rubric. Do not delegate with a short generic request. The workflow should generate sub-skills in parallel when possible, with one or more subagents extracting each planned sub-skill from its assigned evidence. Use the successful prepare-env handoff's canonical `workflowEnvironment` object as `args.environment`: it must contain the verified absolute `executable`, the distribution `package`, the exact `version`, and optional `cwd`; every lane must pass `environment: args.environment` to `agent()` so the runtime asserts it before session startup. Do not pass the private report fields `pythonExecutable`, `expectedDistribution`, or `expectedVersion` as the authored `agent()` contract, and never fall back to ambient Python. Each drafting or revision subagent must write its assigned runtime files directly under the final generated skill subtree, including `SKILL.md`, bundled `references\u002F`, and bundled `scripts\u002F` as applicable. Do not design the workflow so subagents return full sub-skill Markdown, scripts, or JSON drafts for the main agent to write into the skill directory later. Return one row per lane with its stable id, `ok`, `result`, and `error`, then return top-level `complete`, `missing`, and `errors`; `results.length` is not a success count. The main agent reviews and evaluates the files the subagent wrote against repo-specific rubrics, sends concrete feedback back to the relevant subagent or revision pass when a sub-skill is thin, inaccurate, poorly routed, not self-contained, incorrectly named, missing useful bundled script imports\u002Fadaptations, or missing troubleshooting coverage, and repeats until each sub-skill passes review. If any lane fails, do not silently integrate the successful subset: preserve the original jobs and stable IDs, start a recovery workflow containing only current `missing` IDs, set `recoveryOfRunId` and `recoveryRound`, and stop only with an explicit complete result or a reported no-progress\u002Fsafety-cap condition. Each subagent or revision pass should hand back only its covered capabilities, files created or updated, evidence used, related native test\u002Fexample candidates, source scripts imported\u002Fadapted\u002Fexcluded with reasons, troubleshooting coverage, checks performed, intentional omissions, and uncertainties for integration notes under the review\u002Ftest artifact directory.\n7. Whole-skill integration and coverage reconciliation:\n   After all sub-skills pass main-agent review, the main agent writes the outer `SKILL.md`, repo-level `references\u002F`, and repo-level `scripts\u002F`, then performs a dedicated whole-skill integration pass before verification. Reconcile the subagent outputs into one coverage\u002Fdepth matrix, one native test\u002Fexample candidate map, one backend verification plan, one source script import map, one troubleshooting coverage map, and one long-tail gap register under the review\u002Ftest artifact directory's `reports\u002Fintegration\u002F` subtree. Recheck backend criticality whenever integration adds, removes, or changes a capability; if the minimum environment set is no longer sufficient, return to `prepare-repo-skill-env` before final native verification. Check root routing, sub-skill boundaries, cross-references, terminology, duplicate content, bundled reference\u002Fscript ownership, source-repo dependency leaks, whether useful repo scripts were copied\u002Fadapted\u002Fwrapped into the appropriate root or sub-skill `scripts\u002F` location, whether primary workflows have actionable troubleshooting guidance, and whether every user-facing repo capability has an owner or an explicit gap. Also plan one or two integrated difficult usability cases that exercise multiple sub-skills or root-plus-sub-skill routing; prefer adapting real repo tests\u002Fexamples from the native candidate map, and create synthetic cases only when repo evidence has no suitable integrated candidate. If integration finds a thin, inconsistent, or missing area, send it back to the responsible subagent or run a focused revision pass before proceeding.\n8. Routing decision preparation:\n   After the whole skill graph is integrated and before handing it to\n   `verify-repo-skill`, classify the original repository against the exact\n   fixed taxonomy using the repository checkout as the primary evidence source\n   and the generated skill only as navigation context. Assign zero or more\n   exact area -> family paths; every assignment needs its own rationale and at\n   least one non-generated repository evidence item. Reject keyword-only,\n   dependency-only, optional-integration, example-only, and context-collision\n   matches. If no exact family is supported, record `unclassified` with a\n   bounded reason rather than inventing a weak assignment. Interrupted or\n   inaccessible inspection is `blocked` or `failed`, not a guess. Write\n   `skills\u002Fdisco\u002Frouting_decision\u002Fclassification.json` and\n   `skills\u002Fdisco\u002Frouting_decision\u002Fevidence.md` outside the runtime skill graph,\n   then write the candidate minimal v2\n   `references\u002Frepo-routing-metadata.json` from the same decision. Do not put\n   evidence, rationale, confidence, source checkout paths, or scenario fields\n   in the runtime JSON; `verify-repo-skill` remains the final authority and may\n   repair or reject the candidate before import.\n9. Content-level self-refine and usability verification:\n   After the runtime skill directory, root `SKILL.md`, sub-skills, bundled references, bundled scripts, repo provenance, coverage\u002Fdepth matrix, integration notes, long-tail gap register, backend verification plan, native test\u002Fexample candidate map, and subagent review notes are complete, use `..\u002Fverify-repo-skill\u002FSKILL.md` for the final assertion-backed usability test cases, content-level self-refine, native repo test\u002Fexample verification, static verification, final coverage report, review package, and import-readiness handoff. Pass it the generated skill directory, artifact directory, repo evidence summary, sub-skill plan, review rubrics, integration artifacts, environment-preparation handoff, backend verification plan, native candidate map, delegated `importAfterVerification` policy, and any user verification focus. Do not generate usability test cases or verification reports directly in this skill.\n\n## Non-Negotiables\n\n- Do not create generated skill content that depends on the original repository checkout remaining available. Copy, distill, adapt, or wrap source repo material into the generated skill's own `references\u002F` or `scripts\u002F`.\n- Do not leave runtime instructions or Markdown links that point to source repo scripts, examples, docs, notebooks, tools, configs, or absolute checkout paths. If a source repo script is needed for future use, create a bundled replacement under the generated skill's `scripts\u002F` or nearest `sub-skills\u002F...\u002Fscripts\u002F` directory and link that bundled path.\n- Do not replace a useful, safe, repo-maintained script with prose-only Markdown when it can reasonably be copied, adapted, or wrapped as a bundled skill script. If a script is excluded from bundling, record a concrete reason such as unsafe side effects, external credentials, excessive size, generated\u002Fvendor status, or irrelevance to the selected workflows.\n- Do not leak the user's local Python executable, activation command, virtualenv or conda name, machine-specific paths, local checkout path, or `pip show` installation location into generated public skill files.\n- Do not stop solely because the user omitted a Python inspection environment. After repository structure analysis and either user confirmation or explicit agent-confirmation of the extraction scope, use `prepare-repo-skill-env` to prepare one automatically, then continue this workflow from its verified handoff.\n- Do not prepare a new inspection environment before repository structure analysis has identified and confirmed the directories that will drive skill extraction, unless the user explicitly asks to prepare an environment as a standalone task.\n- Do not install broad extras, all optional dependency groups, dev requirements, or backend packages when only a smaller set is needed for the confirmed extraction scope and user requirements.\n- Do not equate \"minimum environment\" with CPU-only. Satisfy every required\n  backend in the confirmed scope, and do not use a CPU import as proof of a\n  GPU\u002Faccelerator capability when `CPU substitute` is `partial` or `none`.\n- Do not silently discard a required native candidate because its hardware is\n  unavailable. Narrow the scope, stop, or carry an explicitly accepted partial\n  verification block into the final report.\n- Do not let `auto-import` bypass an unresolved required-backend block. Require\n  an informed manual import decision after final verification if the user\n  chooses to accept that limitation.\n- Do not mutate a user-provided existing environment to repair or reinstall packages without asking when that change may break the user's environment. If the user declines, use a new private inspection environment instead.\n- Do not overwrite or merge into an existing skill directory unless the user explicitly asks to update that exact skill.\n- Do not treat `skills\u002Ftests\u002F` as an existing skill directory. It is the review\u002Ftest artifact area.\n- Do not write `evals\u002F`, verification reports, human-review notes, publication checklists, prompt samples, staleness audits, usability test cases, or other check-only artifacts inside the generated repo skill directory. Those are owned by `verify-repo-skill` and belong under the configured review\u002Ftest artifact directory, defaulting to `\u003Crepository-path>\u002Fskills\u002Ftests\u002F\u003Cchosen-skill-id>\u002F`, with concrete cases in `test-cases\u002F` and reports or review documents in `reports\u002F`.\n- Do not run the original repository's native examples, tests, notebooks, or scripts as final ground-truth checks until all sub-skills have been generated, reviewed, and integrated into one coherent runtime skill. Before that point, discover and classify native candidates only.\n- Prefer verified package facts over guesses. Use docs, examples, and tests for intent; use source code and installed-package inspection to confirm API and runtime claims.\n- Every generated repo skill must include `references\u002Frepo-provenance.md` with the source commit, branch or tag when available, dirty state, package version, and relative evidence paths so future agents can detect staleness.\n- Every generated repo skill must resolve one repository-level license after the canonical GitHub identity and exact source commit are known. Write that same non-empty single-line value as top-level `license` in the root and every sub-skill `SKILL.md`; preserve GitHub's `NOASSERTION` value when returned, use `NO_LICENSE` only when the GitHub CLI result is unavailable, and report the repository, commit, status, and reason to the user when a fallback is used.\n- Every generated repo skill must include a minimal v2\n  `references\u002Frepo-routing-metadata.json` containing only `schema_version`,\n  canonical `owner\u002Frepository` `repo_id`, `skill_id`, the current taxonomy hash,\n  `routing_status`, exact `area`\u002F`family` assignments, and an\n  `unclassified_reason` only for an unclassified result. Do not put evidence,\n  rationale, confidence, source checkout paths, or scenario fields in this\n  runtime JSON. The detailed decision belongs in the external\n  `skills\u002Fdisco\u002Frouting_decision\u002F` artifact and is validated by\n  `verify-repo-skill` before import.\n- Every generated root and sub-skill `SKILL.md` frontmatter must double-quote\n  `description`, declare `metadata.disco-role: operating`, and include\n  `disable-model-invocation: true` so imported repo skills are available only\n  in Researcher mode and are routed through `repo-skills-router` in compatible\n  targets instead of all appearing in the model-visible skill list. The\n  `repo-skills-router` skill itself is also `operating`. Canonical and exported\n  routers remain model-visible, while DisCo's live router preserves the user's\n  `disco repo-skills router enable|disable` policy. Codex exports add the required `agents\u002Fopenai.yaml` policy during\n  `import-repo-skills-to-agent`; do not add Codex-specific files to the source\n  repo skill during creation.\n- Every generated package repo skill should include troubleshooting guidance for install\u002Fimport, optional dependencies, data\u002Fconfig validation, CLI\u002FAPI misuse, and workflow-specific failure modes when those surfaces exist. Put cross-cutting package issues in root `references\u002Ftroubleshooting.md` and workflow-specific failures in the nearest sub-skill `references\u002Ftroubleshooting.md`.\n- Every generated sub-skill directory basename, `SKILL.md` frontmatter `name`, workflow `subSkill` option, coverage\u002Fdepth matrix output location, and usability target id must use the same canonical lowercase-hyphen sub-skill id. Do not add the repo name to sub-skill ids unless it is truly needed to disambiguate two sibling sub-skills, because the root skill already names the repository.\n- Keep generated root and sub-skill `SKILL.md` files router-like. Move API tables, workflow depth, CLI catalogs, model lists, data schemas, long examples, and troubleshooting matrices into the nearest bundled `references\u002F`.\n- After verification, follow `verify-repo-skill`'s locked import protocol: use `ask_user_question` when import approval is still set to `ask`; when the user explicitly delegated `auto-import`, import without asking again only after successful verification with no partial handoff or unresolved `BLOCKED_REQUIRED_BACKEND`. In both cases, run `verify-repo-skill\u002Fscripts\u002Fimport_repo_skill.mjs` with the verified runtime skill directory and its external routing handoff. That helper stages and recursively validates the runtime tree, installs it under `~\u002F.disco\u002Fagent\u002Fskills\u002Frepositories\u002Frepo-skills\u002F\u003Cskill-id>\u002F`, rebuilds the sibling live DisCo `repo-skills-router` under the global lock, and restores the previous skill, repository index, and router if the transaction fails. Pass `--overwrite` only after approval to replace that exact existing repo skill. Do not hand-edit router Markdown or manually combine a copy command with the router updater. Do not synchronize into other agent tools during this workflow; use `import-repo-skills-to-agent` only when the user explicitly asks to export DisCo's managed skill library.\n- Do not reinterpret repo-to-skills output as ordinary project-scoped output merely because construction ran inside one checkout. Its self-contained, versioned package contract is the evidence for high reuse; if a candidate is actually bound to private project state and cannot satisfy that contract, it is not import-ready for this repo library.\n\n## Output Summary\n\nBy the end, the user should have:\n\n- A generated self-contained repo skill directory containing `SKILL.md`, `references\u002Frepo-provenance.md`, `references\u002Frepo-routing-metadata.json`, and when useful, `sub-skills\u002F`, additional `references\u002F`, and `scripts\u002F`.\n- A unified review\u002Ftest artifact directory path, defaulting to `\u003Crepository-path>\u002Fskills\u002Ftests\u002F\u003Cchosen-skill-id>\u002F`, with `test-cases\u002F` for concrete usability\u002Fnative-backed\u002Fsynthetic case directories and `reports\u002F` for integration notes, coverage\u002Fdepth matrix, native test\u002Fexample candidate maps, evals, verification reports, final reports, and human-review artifacts.\n- A backend-classified native candidate map and backend verification plan that\n  determine the minimum CPU\u002FGPU\u002Faccelerator environment set.\n- A private `ok`, explicitly accepted `partial`, or `failed`\n  environment-preparation handoff when the Python inspection environment had\n  to be created automatically.\n- A handoff to `verify-repo-skill` that distinguishes public skill content, artifact location, repo evidence used, generated sub-skills, integration artifacts, coverage\u002Fdepth matrix, native test\u002Fexample candidates, long-tail gaps, and review rubrics.\n- After `verify-repo-skill` completes and import is approved by the user or safely authorized by `auto-import` with no required-backend block, a DisCo user import under `~\u002F.disco\u002Fagent\u002Fskills\u002Frepositories\u002Frepo-skills\u002F\u003Cskill-id>\u002F` plus an updated sibling live `repo-skills-router` entry that DisCo Researcher can use in a new session without any cross-agent export.\n","# Create Repo Skill\n\n## Purpose\n\nUse this skill to create a high-quality, repo-specific operating Agent Skill for\nDisCo Researcher. The managed DisCo copy is the primary runtime destination; a\nuser may separately export it to Claude Code, Codex, or another compatible\nagent, but export is not required for DisCo to use it.\n\nRepo\u002Fpackage guidance is intentionally treated as a high-reuse operating graph: a self-contained skill for a versioned public package can support the same repository across many checkouts, projects, and research tasks. Its approved live destination is therefore the managed repo collection at `~\u002F.disco\u002Fagent\u002Fskills\u002Frepositories\u002Frepo-skills\u002F\u003Cskill-id>\u002F`, not the current project's `.agents\u002Fskills\u002F`. This is a specialized managed deployment: the import must also rebuild the sibling `repo-skills-router` in the same locked transaction, so never send repo output through the generic operating-graph importer.\n\nIf the user does not provide a repository path, use the current working\ndirectory as the target repository.\n\nThe user may delegate the manual decisions in this workflow. Treat phrases such\nas `auto decide`, `agent decide`, `decide the scope yourself`, `auto import`,\n`default import`, or `do not ask me to confirm scope\u002Fimport` as an explicit\ndecision policy for this create run. The policy has two independent parts:\n\n- `extractionScope: ask` by default, or `agent-decide` when the user delegates\n  scope approval.\n- `importAfterVerification: ask` by default, or `auto-import` when the user\n  delegates the final import decision.\n\nThis policy only skips the routine scope approval and final import approval. It\ndoes not authorize unsafe commands, broad dependency installation, mutation of a\nuser-provided environment that may break it, overwriting an existing skill, or\nimporting a skill that failed verification. `auto-import` also does not accept\nan unavailable or unverified required backend. A required-backend block must be\nresolved, removed by an explicitly narrowed extraction scope, or presented for\nan informed manual acceptance after final verification.\n\nThe user may also provide a temporary Python environment where the package from\nthat repository has already been installed for inspection. If the user does not\nprovide that environment, do not stop and ask for one. Defer automatic\nenvironment preparation until after repository structure analysis and either\nuser confirmation of the extraction scope or agent-confirmation under an\nexplicit `agent-decide` policy. Then use\n`prepare-repo-skill-env` to create, install, and verify the minimum private\ninspection environment set whose dependencies and backend variants cover the\nconfirmed directories, selected workflows, required native verification\ncandidates, and user requirements, and continue this workflow from the handoff.\nThe prepare-env skill should prefer Conda when available, use micromamba,\nvenv, or uv when appropriate, and execute environment creation, installation,\nand verification as explicit terminal commands. If no suitable manager or\nPython exists, it should make the required host-level runtime installation\nvisible and obtain authorization before performing it rather than invoking a\nbundled bootstrap helper.\n\nThe user may also provide a preferred generated-skill output path, a preferred\nreview\u002Ftest artifact output path, a preferred environment prefix for automatic\nenvironment preparation, the installed package name, known troubleshooting\nnotes, and extra extraction requirements. If no output path is provided,\ndefault to creating the generated skill under the repository's own `skills\u002F`\ndirectory. If that directory already exists, create a `disco\u002F` subdirectory\ninside it as the active skills root for DisCo-generated output.\n\nThe installed Python environment is required so the agent can inspect live APIs, function signatures, modules, imports, CLI entry points, and runtime behavior instead of relying only on source-code guesses. It can be provided by the user or prepared automatically via the prepare-env skill. Treat this environment as private research context. It must not appear in the generated repo skill.\n\n## Reference Map\n\nRead these references as the workflow reaches each stage:\n\n- [references\u002Finput-output-and-structure.md](references\u002Finput-output-and-structure.md): input collection, canonical skill ids, output path resolution, default runtime skill and `skills\u002Ftests\u002F` artifact locations, generated skill tree, and content placement rules.\n- [references\u002Frepository-evidence.md](references\u002Frepository-evidence.md): how to discover source roots, docs, examples, scripts, tests, configs, existing repo-local skills, extraction evidence maps, backend-classified native test\u002Fexample candidates, and the backend verification plan before extracting skills.\n- `..\u002Fprepare-repo-skill-env\u002FSKILL.md`: backend-aware environment preparation after repository structure analysis, including minimal dependency selection for the confirmed extraction scope, required-backend readiness, and existing-environment mutation safeguards.\n- `..\u002Fworkflow-authoring\u002FSKILL.md`: the canonical workflow script, structured args, prepared-environment, coverage, and recovery contract. Read it completely before the first `workflow` call in coordinated generation.\n- [references\u002Finstalled-package-inspection.md](references\u002Finstalled-package-inspection.md): read-only inspection of the user-provided or automatically prepared installed package environment and how to avoid leaking local environment details.\n- [references\u002Fplanning-and-writing.md](references\u002Fplanning-and-writing.md): sub-skill boundaries, coverage\u002Fdepth matrix, dynamic workflow generation, whole-skill integration gates, target file tree planning, generated `SKILL.md` frontmatter, references, scripts, and anti-patterns.\n- [..\u002Fverify-repo-skill\u002Fscripts\u002Fresolve_repo_license.mjs](..\u002Fverify-repo-skill\u002Fscripts\u002Fresolve_repo_license.mjs): resolves one GitHub `license.spdx_id` for the exact source commit and emits the required `NO_LICENSE` fallback\u002Freport.\n- `..\u002Fverify-repo-skill\u002FSKILL.md`: final assertion-backed usability test case generation, content-level self-refine, native repo test\u002Fexample verification, static verification, final coverage report, review package, handoff, and import readiness after this skill has created and integrated the runtime repo skill.\n\n## Required Workflow\n\nUse the agent's available todo or task-list mechanism for this workflow so the\nuser can see the current phase, especially during repository analysis,\nenvironment preparation, sub-skill generation, review, and handoff to\nverification. If the current agent has no todo tool, maintain a visible\nchecklist in the conversation.\n\n1. User request analysis:\n   Read [references\u002Finput-output-and-structure.md](references\u002Finput-output-and-structure.md). Identify the repository path, Python inspection environment if provided, preferred conda prefix if provided, skill output directory, review\u002Ftest artifact directory, extra extraction requirements, delegated decision policy (`extractionScope` and `importAfterVerification`), and any other information that can affect extraction. Use the current working directory when the repo path is omitted. Resolve the canonical skill id, active skills root, generated skill directory, artifact directory, and private default inspection prefix before writing files. If the user did not provide a usable Python inspection environment, do not prepare it yet; record the default prefix under `$DISCO_CODING_AGENT_DIR\u002Fenvs\u002F\u003Cchosen-skill-id>-inspection` when that variable is set, otherwise under `~\u002F.disco\u002Fagent\u002Fenvs\u002F\u003Cchosen-skill-id>-inspection`, and defer installation until after repository structure analysis confirms which directories will be used.\n2. Repository structure analysis:\n   Read [references\u002Frepository-evidence.md](references\u002Frepository-evidence.md). Inspect the repository tree, package metadata, source roots, docs, examples, scripts, tests, configs, and existing repo-local skills. Build a concise extraction evidence map that names directories to include and directories to exclude from later extraction context. Also build a native test\u002Fexample candidate map from repo-owned examples, tests, notebooks, CLI snippets, fixtures, and smoke scripts. Classify each candidate by workflow, safety, backend requirement (`cpu`, `cuda`, `rocm`, `mps`, accelerator-specific, or `any`), backend criticality (`required`, `optional`, or `alternative`), CPU substitution (`full`, `partial`, or `none`), dependency variant, hardware prerequisites, and verification expectation. After the extraction scope is confirmed, derive a backend verification plan for included workflows: required\u002Foptional backend coverage, minimum environment set, hardware probes, preparation smoke checks, final native cases, and the blocking consequence of unavailable required hardware. Separately build a source script inventory for repo-owned `scripts\u002F`, `tools\u002F`, `bin\u002F`, example scripts, and workflow helpers, classifying each useful script as copy, adapt, wrap, reference-only, or exclude with a concrete reason. Do not run native tests\u002Fexamples in this phase. If `extractionScope` is `ask`, ask the user whether the directory scope and backend plan are reasonable before continuing and incorporate any correction. If `extractionScope` is `agent-decide`, do not stop for routine approval; mark both as agent-confirmed, briefly report include\u002Fexclude and backend decisions to the user, record the decision mode and rationale under the review\u002Ftest artifact directory's `reports\u002Fintegration\u002F` subtree when practical, and continue.\n3. License resolution:\n   After the canonical GitHub repository identity and exact source commit for this\n   run are known, resolve the repository license once before sub-skill generation:\n\n   ```bash\n   node ..\u002Fverify-repo-skill\u002Fscripts\u002Fresolve_repo_license.mjs \\\n     --repository \u003Cowner\u002Frepository> \\\n     --source-commit \u003C40-hex-source-commit> \\\n     --json > \u003Cartifact-root>\u002Freports\u002Flicense-resolution.json\n   ```\n\n   Use the returned `value` for every root and sub-skill `SKILL.md`. A successful\n   non-empty `license.spdx_id` is authoritative, including `NOASSERTION`; missing\n   `gh`, authentication or API failures, 404, unparseable or missing values become\n   `license: NO_LICENSE`. Record repository, source commit, status, value, reason,\n   and updated file count under `reports\u002F`; do not include raw API responses or\n   credentials in runtime files. `NO_LICENSE` is a warning, not a legal\n   conclusion, and does not by itself block verification or import.\n4. Environment preparation:\n   Read and use `..\u002Fprepare-repo-skill-env\u002FSKILL.md`. Prepare or verify the Python inspection environment only after the repository structure analysis and backend verification plan are confirmed. Pass the included\u002Fexcluded directories, package metadata, backend-classified native candidate map, backend verification plan, and user extraction requirements into the install plan. Install the minimum environment set that satisfies every required backend for selected capabilities, not merely the smallest CPU-importable set. Usually one GPU-capable environment can cover CPU checks; use separate prefixes only when dependency variants conflict or an independent CPU fallback claim also requires verification. Do not install optional backend packages for excluded or unselected workflows. If the user provided an existing environment and verification shows that reinstalling, upgrading, or repairing packages may mutate or break it, ask before modifying that environment. If modification is not allowed, create a new private prefix when permitted. Continue automatically only from an `ok` handoff. If a required backend is unavailable, either narrow the extraction scope with user approval, stop with a failed handoff, or continue drafting only after the user explicitly accepts a `partial` handoff; carry that block forward and disable auto-import.\n5. Sub-skill structure generation:\n   Read [references\u002Finstalled-package-inspection.md](references\u002Finstalled-package-inspection.md) and [references\u002Fplanning-and-writing.md](references\u002Fplanning-and-writing.md). Use repository evidence plus installed-package inspection to plan only the sub-skill structure first: canonical sub-skill ids, responsibilities, boundaries, evidence sources, target files, expected references\u002Fscripts, source-script imports or adaptations owned by each sub-skill, troubleshooting references and failure modes each sub-skill must cover, native test\u002Fexample candidates relevant to each sub-skill, cross-references, and review rubrics. The main agent owns this structure and should optimize it for future usability, not for mirroring source folders mechanically. Do not write the detailed sub-skill content in this phase. Keep the planned overall generated skill shape compatible with this skill's existing root `SKILL.md`, `references\u002F`, `scripts\u002F`, and `sub-skills\u002F` structure.\n6. Coordinated skill generation:\n   Before the first `workflow` call, read `..\u002Fworkflow-authoring\u002FSKILL.md` completely. When running in DisCo, use the built-in `workflow` tool to coordinate generation. Keep the JavaScript `script` short and put complete, Markdown-rich sub-skill briefs in structured `args.jobs` or `args.briefs`; never paste those briefs into a template literal in the script. Each planned sub-skill id must appear in the relevant phase and in each `agent()` call's `subSkill` option, making progress visible while subagents write and revise sub-skills. In other agents, use the same process with whatever task, subagent, or manual sequencing tools are available. Each subagent prompt must include a complete scope-specific brief from the structure plan: target sub-skill id, exact `sub-skills\u002F\u003Cid>\u002F` output subtree, frontmatter name requirement, responsibility, included and excluded capabilities, evidence files to inspect, installed-package facts to verify, required references\u002Fscripts, source scripts to copy\u002Fadapt\u002Fwrap or explicitly exclude, troubleshooting failure modes to cover, links to create, related native test\u002Fexample candidates, and the acceptance rubric. Do not delegate with a short generic request. The workflow should generate sub-skills in parallel when possible, with one or more subagents extracting each planned sub-skill from its assigned evidence. Use the successful prepare-env handoff's canonical `workflowEnvironment` object as `args.environment`: it must contain the verified absolute `executable`, the distribution `package`, the exact `version`, and optional `cwd`; every lane must pass `environment: args.environment` to `agent()` so the runtime asserts it before session startup. Do not pass the private report fields `pythonExecutable`, `expectedDistribution`, or `expectedVersion` as the authored `agent()` contract, and never fall back to ambient Python. Each drafting or revision subagent must write its assigned runtime files directly under the final generated skill subtree, including `SKILL.md`, bundled `references\u002F`, and bundled `scripts\u002F` as applicable. Do not design the workflow so subagents return full sub-skill Markdown, scripts, or JSON drafts for the main agent to write into the skill directory later. Return one row per lane with its stable id, `ok`, `result`, and `error`, then return top-level `complete`, `missing`, and `errors`; `results.length` is not a success count. The main agent reviews and evaluates the files the subagent wrote against repo-specific rubrics, sends concrete feedback back to the relevant subagent or revision pass when a sub-skill is thin, inaccurate, poorly routed, not self-contained, incorrectly named, missing useful bundled script imports\u002Fadaptations, or missing troubleshooting coverage, and repeats until each sub-skill passes review. If any lane fails, do not silently integrate the successful subset: preserve the original jobs and stable IDs, start a recovery workflow containing only current `missing` IDs, set `recoveryOfRunId` and `recoveryRound`, and stop only with an explicit complete result or a reported no-progress\u002Fsafety-cap condition. Each subagent or revision pass should hand back only its covered capabilities, files created or updated, evidence used, related native test\u002Fexample candidates, source scripts imported\u002Fadapted\u002Fexcluded with reasons, troubleshooting coverage, checks performed, intentional omissions, and uncertainties for integration notes under the review\u002Ftest artifact directory.\n7. Whole-skill integration and coverage reconciliation:\n   After all sub-skills pass main-agent review, the main agent writes the outer `SKILL.md`, repo-level `references\u002F`, and repo-level `scripts\u002F`, then performs a dedicated whole-skill integration pass before verification. Reconcile the subagent outputs into one coverage\u002Fdepth matrix, one native test\u002Fexample candidate map, one backend verification plan, one source script import map, one troubleshooting coverage map, and one long-tail gap register under the review\u002Ftest artifact directory's `reports\u002Fintegration\u002F` subtree. Recheck backend criticality whenever integration adds, removes, or changes a capability; if the minimum environment set is no longer sufficient, return to `prepare-repo-skill-env` before final native verification. Check root routing, sub-skill boundaries, cross-references, terminology, duplicate content, bundled reference\u002Fscript ownership, source-repo dependency leaks, whether useful repo scripts were copied\u002Fadapted\u002Fwrapped into the appropriate root or sub-skill `scripts\u002F` location, whether primary workflows have actionable troubleshooting guidance, and whether every user-facing repo capability has an owner or an explicit gap. Also plan one or two integrated difficult usability cases that exercise multiple sub-skills or root-plus-sub-skill routing; prefer adapting real repo tests\u002Fexamples from the native candidate map, and create synthetic cases only when repo evidence has no suitable integrated candidate. If integration finds a thin, inconsistent, or missing area, send it back to the responsible subagent or run a focused revision pass before proceeding.\n8. Routing decision preparation:\n   After the whole skill graph is integrated and before handing it to\n   `verify-repo-skill`, classify the original repository against the exact\n   fixed taxonomy using the repository checkout as the primary evidence source\n   and the generated skill only as navigation context. Assign zero or more\n   exact area -> family paths; every assignment needs its own rationale and at\n   least one non-generated repository evidence item. Reject keyword-only,\n   dependency-only, optional-integration, example-only, and context-collision\n   matches. If no exact family is supported, record `unclassified` with a\n   bounded reason rather than inventing a weak assignment. Interrupted or\n   inaccessible inspection is `blocked` or `failed`, not a guess. Write\n   `skills\u002Fdisco\u002Frouting_decision\u002Fclassification.json` and\n   `skills\u002Fdisco\u002Frouting_decision\u002Fevidence.md` outside the runtime skill graph,\n   then write the candidate minimal v2\n   `references\u002Frepo-routing-metadata.json` from the same decision. Do not put\n   evidence, rationale, confidence, source checkout paths, or scenario fields\n   in the runtime JSON; `verify-repo-skill` remains the final authority and may\n   repair or reject the candidate before import.\n9. Content-level self-refine and usability verification:\n   After the runtime skill directory, root `SKILL.md`, sub-skills, bundled references, bundled scripts, repo provenance, coverage\u002Fdepth matrix, integration notes, long-tail gap register, backend verification plan, native test\u002Fexample candidate map, and subagent review notes are complete, use `..\u002Fverify-repo-skill\u002FSKILL.md` for the final assertion-backed usability test cases, content-level self-refine, native repo test\u002Fexample verification, static verification, final coverage report, review package, and import-readiness handoff. Pass it the generated skill directory, artifact directory, repo evidence summary, sub-skill plan, review rubrics, integration artifacts, environment-preparation handoff, backend verification plan, native candidate map, delegated `importAfterVerification` policy, and any user verification focus. Do not generate usability test cases or verification reports directly in this skill.\n\n## Non-Negotiables\n\n- Do not create generated skill content that depends on the original repository checkout remaining available. Copy, distill, adapt, or wrap source repo material into the generated skill's own `references\u002F` or `scripts\u002F`.\n- Do not leave runtime instructions or Markdown links that point to source repo scripts, examples, docs, notebooks, tools, configs, or absolute checkout paths. If a source repo script is needed for future use, create a bundled replacement under the generated skill's `scripts\u002F` or nearest `sub-skills\u002F...\u002Fscripts\u002F` directory and link that bundled path.\n- Do not replace a useful, safe, repo-maintained script with prose-only Markdown when it can reasonably be copied, adapted, or wrapped as a bundled skill script. If a script is excluded from bundling, record a concrete reason such as unsafe side effects, external credentials, excessive size, generated\u002Fvendor status, or irrelevance to the selected workflows.\n- Do not leak the user's local Python executable, activation command, virtualenv or conda name, machine-specific paths, local checkout path, or `pip show` installation location into generated public skill files.\n- Do not stop solely because the user omitted a Python inspection environment. After repository structure analysis and either user confirmation or explicit agent-confirmation of the extraction scope, use `prepare-repo-skill-env` to prepare one automatically, then continue this workflow from its verified handoff.\n- Do not prepare a new inspection environment before repository structure analysis has identified and confirmed the directories that will drive skill extraction, unless the user explicitly asks to prepare an environment as a standalone task.\n- Do not install broad extras, all optional dependency groups, dev requirements, or backend packages when only a smaller set is needed for the confirmed extraction scope and user requirements.\n- Do not equate \"minimum environment\" with CPU-only. Satisfy every required\n  backend in the confirmed scope, and do not use a CPU import as proof of a\n  GPU\u002Faccelerator capability when `CPU substitute` is `partial` or `none`.\n- Do not silently discard a required native candidate because its hardware is\n  unavailable. Narrow the scope, stop, or carry an explicitly accepted partial\n  verification block into the final report.\n- Do not let `auto-import` bypass an unresolved required-backend block. Require\n  an informed manual import decision after final verification if the user\n  chooses to accept that limitation.\n- Do not mutate a user-provided existing environment to repair or reinstall packages without asking when that change may break the user's environment. If the user declines, use a new private inspection environment instead.\n- Do not overwrite or merge into an existing skill directory unless the user explicitly asks to update that exact skill.\n- Do not treat `skills\u002Ftests\u002F` as an existing skill directory. It is the review\u002Ftest artifact area.\n- Do not write `evals\u002F`, verification reports, human-review notes, publication checklists, prompt samples, staleness audits, usability test cases, or other check-only artifacts inside the generated repo skill directory. Those are owned by `verify-repo-skill` and belong under the configured review\u002Ftest artifact directory, defaulting to `\u003Crepository-path>\u002Fskills\u002Ftests\u002F\u003Cchosen-skill-id>\u002F`, with concrete cases in `test-cases\u002F` and reports or review documents in `reports\u002F`.\n- Do not run the original repository's native examples, tests, notebooks, or scripts as final ground-truth checks until all sub-skills have been generated, reviewed, and integrated into one coherent runtime skill. Before that point, discover and classify native candidates only.\n- Prefer verified package facts over guesses. Use docs, examples, and tests for intent; use source code and installed-package inspection to confirm API and runtime claims.\n- Every generated repo skill must include `references\u002Frepo-provenance.md` with the source commit, branch or tag when available, dirty state, package version, and relative evidence paths so future agents can detect staleness.\n- Every generated repo skill must resolve one repository-level license after the canonical GitHub identity and exact source commit are known. Write that same non-empty single-line value as top-level `license` in the root and every sub-skill `SKILL.md`; preserve GitHub's `NOASSERTION` value when returned, use `NO_LICENSE` only when the GitHub CLI result is unavailable, and report the repository, commit, status, and reason to the user when a fallback is used.\n- Every generated repo skill must include a minimal v2\n  `references\u002Frepo-routing-metadata.json` containing only `schema_version`,\n  canonical `owner\u002Frepository` `repo_id`, `skill_id`, the current taxonomy hash,\n  `routing_status`, exact `area`\u002F`family` assignments, and an\n  `unclassified_reason` only for an unclassified result. Do not put evidence,\n  rationale, confidence, source checkout paths, or scenario fields in this\n  runtime JSON. The detailed decision belongs in the external\n  `skills\u002Fdisco\u002Frouting_decision\u002F` artifact and is validated by\n  `verify-repo-skill` before import.\n- Every generated root and sub-skill `SKILL.md` frontmatter must double-quote\n  `description`, declare `metadata.disco-role: operating`, and include\n  `disable-model-invocation: true` so imported repo skills are available only\n  in Researcher mode and are routed through `repo-skills-router` in compatible\n  targets instead of all appearing in the model-visible skill list. The\n  `repo-skills-router` skill itself is also `operating`. Canonical and exported\n  routers remain model-visible, while DisCo's live router preserves the user's\n  `disco repo-skills router enable|disable` policy. Codex exports add the required `agents\u002Fopenai.yaml` policy during\n  `import-repo-skills-to-agent`; do not add Codex-specific files to the source\n  repo skill during creation.\n- Every generated package repo skill should include troubleshooting guidance for install\u002Fimport, optional dependencies, data\u002Fconfig validation, CLI\u002FAPI misuse, and workflow-specific failure modes when those surfaces exist. Put cross-cutting package issues in root `references\u002Ftroubleshooting.md` and workflow-specific failures in the nearest sub-skill `references\u002Ftroubleshooting.md`.\n- Every generated sub-skill directory basename, `SKILL.md` frontmatter `name`, workflow `subSkill` option, coverage\u002Fdepth matrix output location, and usability target id must use the same canonical lowercase-hyphen sub-skill id. Do not add the repo name to sub-skill ids unless it is truly needed to disambiguate two sibling sub-skills, because the root skill already names the repository.\n- Keep generated root and sub-skill `SKILL.md` files router-like. Move API tables, workflow depth, CLI catalogs, model lists, data schemas, long examples, and troubleshooting matrices into the nearest bundled `references\u002F`.\n- After verification, follow `verify-repo-skill`'s locked import protocol: use `ask_user_question` when import approval is still set to `ask`; when the user explicitly delegated `auto-import`, import without asking again only after successful verification with no partial handoff or unresolved `BLOCKED_REQUIRED_BACKEND`. In both cases, run `verify-repo-skill\u002Fscripts\u002Fimport_repo_skill.mjs` with the verified runtime skill directory and its external routing handoff. That helper stages and recursively validates the runtime tree, installs it under `~\u002F.disco\u002Fagent\u002Fskills\u002Frepositories\u002Frepo-skills\u002F\u003Cskill-id>\u002F`, rebuilds the sibling live DisCo `repo-skills-router` under the global lock, and restores the previous skill, repository index, and router if the transaction fails. Pass `--overwrite` only after approval to replace that exact existing repo skill. Do not hand-edit router Markdown or manually combine a copy command with the router updater. Do not synchronize into other agent tools during this workflow; use `import-repo-skills-to-agent` only when the user explicitly asks to export DisCo's managed skill library.\n- Do not reinterpret repo-to-skills output as ordinary project-scoped output merely because construction ran inside one checkout. Its self-contained, versioned package contract is the evidence for high reuse; if a candidate is actually bound to private project state and cannot satisfy that contract, it is not import-ready for this repo library.\n\n## Output Summary\n\nBy the end, the user should have:\n\n- A generated self-contained repo skill directory containing `SKILL.md`, `references\u002Frepo-provenance.md`, `references\u002Frepo-routing-metadata.json`, and when useful, `sub-skills\u002F`, additional `references\u002F`, and `scripts\u002F`.\n- A unified review\u002Ftest artifact directory path, defaulting to `\u003Crepository-path>\u002Fskills\u002Ftests\u002F\u003Cchosen-skill-id>\u002F`, with `test-cases\u002F` for concrete usability\u002Fnative-backed\u002Fsynthetic case directories and `reports\u002F` for integration notes, coverage\u002Fdepth matrix, native test\u002Fexample candidate maps, evals, verification reports, final reports, and human-review artifacts.\n- A backend-classified native candidate map and backend verification plan that\n  determine the minimum CPU\u002FGPU\u002Faccelerator environment set.\n- A private `ok`, explicitly accepted `partial`, or `failed`\n  environment-preparation handoff when the Python inspection environment had\n  to be created automatically.\n- A handoff to `verify-repo-skill` that distinguishes public skill content, artifact location, repo evidence used, generated sub-skills, integration artifacts, coverage\u002Fdepth matrix, native test\u002Fexample candidates, long-tail gaps, and review rubrics.\n- After `verify-repo-skill` completes and import is approved by the user or safely authorized by `auto-import` with no required-backend block, a DisCo user import under `~\u002F.disco\u002Fagent\u002Fskills\u002Frepositories\u002Frepo-skills\u002F\u003Cskill-id>\u002F` plus an updated sibling live `repo-skills-router` entry that DisCo Researcher can use in a new session without any cross-agent export.\n",{"name":5,"metadata":23,"description":7},{"disco-role":24},"meta","main","ac3fe1afa80fb9a09775ecfb2b6cc3ba850a2db6","cli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill",27,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab","2026-09-03 10:25:21",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add VectorSpaceLab\u002FAREX-Skill --skill create-repo-skill",{"tool":38,"command":39},"bunx","bunx skills add VectorSpaceLab\u002FAREX-Skill --skill create-repo-skill",{"tool":41,"command":42},"pnpm","pnpm dlx skills add VectorSpaceLab\u002FAREX-Skill --skill create-repo-skill","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fcli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill\u002FSKILL.md",true,[46,52,56,60],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Finput-output-and-structure.md","REFERENCE","参考文档",20667,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fcli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill\u002Freferences\u002Finput-output-and-structure.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Finstalled-package-inspection.md",3115,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fcli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill\u002Freferences\u002Finstalled-package-inspection.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Fplanning-and-writing.md",39603,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fcli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill\u002Freferences\u002Fplanning-and-writing.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Frepository-evidence.md",16326,"https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fcli\u002Fpackages\u002Fcoding-agent\u002Fsrc\u002Fdisco\u002Fskills\u002Fcreate-repo-skill\u002Freferences\u002Frepository-evidence.md",[65,73,80,87,94,101],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":72},"01M799NYSH1R3RVAHSM2D88Y84","passnet-triton-opt","Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block\u002Fgrid\u002Fwarp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-triton-opt\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":72},"01M799NS5APEC0N1FZ7XZVW6BN","passnet-solve","END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-solve\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":72},"01M799NNY9BKSM21V5R7QVTBJX","passnet-skill","PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under .\u002Fpass_dir\u002F, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-skill\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":72},"01M799NHH6NP7Z1RK77KGXAN6S","passnet-pattern-fusion","Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()\u002Freplacement_args()\u002Freplacement_func() files, when a pass \"failed to match\", or when deciding how to fuse multiple kernels\u002Fops.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-pattern-fusion\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":72},"01M799ND2J4WNC2PGAZ0A06NDF","passnet-orchestrate","Round\u002Fbatch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep\u002Frevert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-orchestrate\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":107,"publishedAt":72},"01M799N8SBTMY02ZDG2AZF5ZWE","passnet-feedback","Fast, deterministic feedback for PassNet work: pre-flight pattern\u002Fmatch verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).","https:\u002F\u002Fgithub.com\u002FVectorSpaceLab\u002FAREX-Skill\u002Fblob\u002Fmain\u002Fskills\u002Ftask-oriented\u002FPassNet\u002Fskills\u002Fpassnet-feedback\u002FSKILL.md",[],[]]