ask-matt
MAmattpocock/skills337k4,978 new stars in the last 7 days
Load this skill first when asked to build, make, scaffold, bootstrap or generate a new app, service, library or project on any platform: web, mobile, desktop, API, CLI or AI agent. Not for changing an existing app.
Build what the user means, the way each tool works today. Scaffolders, boilerplates and SDKs change monthly: every command, flag and version comes from a lookup made in this run, never from memory. The scripts (detect, versions, templates, verify) run as node <skill-folder>/scripts/<name>.mjs (Node 20+, JSON output, --help). Use a script for the step it covers; when the framework's own command does that step, run that command instead. A change to an existing app rather than a new project belongs to the octocode-engineer skill.
flowchart LR
A[Ask: what, where, mocks] --> C[context/] --> D[Research and design.md] --> P[plan.md] --> V{User approves?}
V -- changes --> D
V -- yes --> B[Build with creational CLI] --> G[Prove gates] --> H[Hand over]
The project goes in <target>, a new folder asked for in step 1 (default <workspace>/<slug>, where <workspace> is the folder you work from). Its documents live beside it in <workspace>/.octocode/octocode-generate/<slug>/: context/ (the user's mocks, screenshots, specs, links and your research notes), design.md and plan.md. Keep them outside <target>: scaffolders refuse a folder that is not empty.
context/. Run detect-workspace.mjs <target>: an existing repository's conventions win.design.md from the design template: product, flows, screens, visual style taken from the mocks, data model, architecture and API, each row citing its source.plan.md from the plan template: stack and runner-up per costly choice, the exact commands, integrations and env vars, minimal tests, evidence. Check dependencies with check-versions.mjs [--project <target>] <specs>: npm, crates:, pypi:, go:, maven:, nuget:, rubygems:, packagist:, pub:, hex: and jsr: in their own range syntax, with a ready pin each. Add missingPeers when the package manager is Yarn; the package manager's dry run settles transitive peers.apply-template.mjs <target> <templates> --pm <pm>: dry run first, it never overwrites, --list shows the templates, and toolchain names the set per stack. Install the exact resolved versions. Build each feature from design.md with a small test.verify-project.mjs <target>, which derives gates for 12 ecosystems (--gate <gate>=<command> sets a gate's command for anything else). Fix failures at their cause. When a fix leaves the same failure and no new evidence, ask the user. For a web app or API, start the dev command in the background, wait for its ready line, request the URL, then stop it by PID; for a mobile or desktop app, the platform build (npx expo export, flutter build) is the proof.AGENTS.md with the dev and gate commands, mark both documents Built, then report.Write only the tests the test rule names. Keep the user oriented: one line when each step starts, and on failure, what broke, why and the next step.
| Safeguard | Rule |
|---|---|
| Effects | Never commit, push, deploy or create cloud resources or repositories unasked; git init only in a new, empty folder. |
| Secrets | .env stays git-ignored; .env.example documents every variable; keys never appear in code or the plan; context/ stays local. |
| Scaffolder extras | Agent files (AGENTS.md, skills, .claude/settings.json), telemetry, git init or install hooks that a CLI or boilerplate adds go in the plan, with the opt-out flag passed unless the user wants them. |
Return the context folder path, what was created, the gate results, each decision with its evidence, next steps (dev command, env to fill) and anything not run. Done when the user approved the design and plan and every gate passes, or the failing gate and its blocker are reported.
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
OBobra/superpowers331k4,772 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days
AFaffaan-m/ECC315k4,381 new stars in the last 7 days