source-driven-development
Use when unfamiliar libraries, dependency internals, external APIs, framework behavior, migrations, or current ecosystem guidance require official documentation, version-matched source, read the tests, and cited evidence.
- License 许可
- MIT
- 最近更新
- 2026-08-20
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- source-driven-development
- description
- Use when unfamiliar libraries, dependency internals, external APIs, framework behavior, migrations, or current ecosystem guidance require official documentation, version-matched source, read the tests, and cited evidence.
02 资源文件 1
- 参考文档references/opensrc-cli.md2.1 KB
03 SKILL.md 正文
Source-Driven Development
<HARD-GATE> Do not guess external behavior. Cite authoritative evidence for non-trivial API decisions or label the claim unverified. When internals determine the answer, read the source before forming an opinion. A request to skip manifests, lockfiles, official docs, source, or tests does not override this gate: inspect the exact local version and consumers first, then stop if authoritative evidence is unavailable. </HARD-GATE>
Use this for unfamiliar or version-sensitive APIs, unexpected dependency behavior, package evaluation, migration research, and guidance that may have changed. Prefer local code search for purely project-owned behavior.
Evidence Hierarchy
- Project lockfile, installed code, tests, and documented local decisions.
- Official specification, docs, release notes, and security advisories.
- Version-matched maintained source and its tests/examples.
- Maintainer-authored explanations.
- Dated community reports only when stronger evidence is absent.
Docs describe intended public behavior; version-matched code and tests establish observed implementation. When they conflict, report the discrepancy rather than silently choosing one.
Research Workflow
- Question — state one precise question or testable hypothesis.
- Version — identify the project's exact package/runtime version from lockfiles or manifests.
- Retrieve — start with local docs/source, then official docs and repository source. Use web search for discovery and fetch the authoritative page. For dependency source not otherwise available, follow
references/opensrc-cli.md. - Navigate — find the public entry point, then follow only the relevant call graph. Do not read a repository without a question.
- Read the tests — confirm intended edge cases, examples, error contracts, and version history.
- Probe — write a tiny test or minimal reproduction that predicts observable output.
- Conclude — separate verified facts, inference, and unresolved uncertainty; recommend one project-specific action.
- Citation — include URL or repository version plus
path:linefor each load-bearing claim.
Dependency Safety Review
For “is this safe?” questions, inspect the exact version for:
evalornew Function;child_processexecution and shell interpolation;- filesystem writes using untrusted paths;
- hardcoded network destinations or telemetry;
- hidden side effects during import/initialization;
- abandoned dependencies, advisories, or suspicious install scripts.
Trace findings to reachable code; a string match alone is a candidate, not proof.
Stop Conditions
Stop when the question is answered with versioned evidence and a confirming probe. Do not fetch an ecosystem, wander unrelated modules, trust README claims over contradictory current tests, or implement from a different version. If source cannot be retrieved or behavior cannot be reproduced, report the limitation as unverified.
Required Output
Report the question, project and source versions, sources consulted, verified facts, conflicting evidence, minimal probe result, recommendation, and remaining uncertainty.
04 同仓库更多 Skills
writing-skills
Use when creating new skills, editing existing skills, or verifying skills work before deployment - applies TDD to process documentation by testing with subagents before writing, iterating until bulletproof against rationalization. Includes complete pressure testing methodology.
verification-before-completion
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
typescript-coding-standards
Use when writing, refactoring, or reviewing TypeScript code that needs strong domain modeling, typed errors, schema parsing, safe adapters, test seams, or maintainable module boundaries.
test-driven-development
Use when implementing a feature, bugfix, or behavior-changing refactor — require a failing behavior test before production code, then make the smallest change that passes.
security-and-hardening
Use when auditing security, implementing authentication or authorization, handling secrets, or validating data across external trust boundaries.
prototype
Use when the user wants to prototype, sanity-check a data model or state machine, mock up a UI, explore design options, or says "prototype this", "let me play with it", "try a few designs".