code-project
Skill4 starsChanged 3 months agoMITView on GitHub
Detect a project's language/build/test toolchain instead of assuming one, scaffold a fresh Python project, run its tests, and work failures with a reproduce-isolate-hypothesize-fix loop and sandbox-safe dependency changes.
- Pipes a download into a shell
In this repository7 other files it gives its agents.
- checkpoint-and-resumeSkill
- githubSkill
- human-in-the-loopSkill
- notionSkill
- skill-creatorSkill
- verify-workSkill
- web-researchSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Use this skill for any task that builds, tests, fixes, or scaffolds code: an existing repo you need to work in, or a brand-new project to …
- Very specific: line 21
If they aren't enabled, shell alone (cat, redirection, sed) still works for reading and editing files.
- Very specific: line 25
Detect first: Run scripts/detect_toolchain.sh [dir] before touching anything, even for a project that "looks" like a language you recognize.
- Very specific: line 33
Scaffold only if starting fresh: If detect_toolchain.sh reports language: unknown and the task is to start a new Python project, run …
- Very specific: line 39
Run tests: Run scripts/run_tests.sh [dir].
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Code Project
When To Use
Use this skill for any task that builds, tests, fixes, or scaffolds code: an existing repo you need to work in, or a brand-new project to start. Detect the toolchain before assuming a language, build system, or test runner -- a repo's file layout tells you, guessing wastes turns.
Requirements
shell-- required. Every bundled script in this skill runs through it.file_read/file_write/file_edit/list_dir-- recommended, when enabled. This skill's own scripts don't need them, but the debugging loop inreferences/debugging.md(reading tracebacks, editing source) does. If they aren't enabled,shellalone (cat, redirection,sed) still works for reading and editing files.
Workflow
- Detect first. Run
scripts/detect_toolchain.sh [dir]before touching anything, even for a project that "looks" like a language you recognize. It prints one JSON object:language,build,test_runner,layout,markers-- all drawn from files actually present indir. - Read the matching toolchain reference. Once you know
language, read its section inreferences/toolchains.mdfor house conventions (lockfile discipline, layout gotchas, per-language test-runner quirks) before running anything else. - Scaffold only if starting fresh. If
detect_toolchain.shreportslanguage: unknownand the task is to start a new Python project, runscripts/init_python_project.sh <dir> [package_name]. It writes apyproject.toml(fromassets/pyproject.toml), a.gitignore(fromassets/gitignore),src/<pkg>/__init__.py, andtests/test_smoke.py, andgit inits the directory when git is available. - Run tests. Run
scripts/run_tests.sh [dir]. It detects and invokes the right runner (pytest / jest, vitest, mocha, ornpm test/go test/cargo test), prints the raw output followed by a concise failure summary, and exits with the runner's own status --2if no runner could be detected. - On any failure, follow
references/debugging.md's reproduce -> isolate -> hypothesize -> fix loop instead of guessing at a patch from the failure summary alone. - Before adding, removing, or upgrading a dependency, read
references/dependencies.md-- the sandbox has nosudoand nocurl | sh-style installs are safe to run. - Before reporting a fix as done, activate
verify-workand follow it -- passing tests are not by themselves acceptance evidence; that skill covers deriving criteria and producing the evidence a human needs.
Reference Table
| Read... | When... |
references/toolchains.md | You know the detected language and need its idioms: which package manager the lockfile implies, layout gotchas, how each runner is actually invoked. |
references/testing.md | You need to choose test flags, interpret run_tests.sh output, or decide what "done" means before reporting a fix finished. |
references/debugging.md | run_tests.sh (or a build) failed and you need a disciplined loop instead of trial-and-error edits. |
references/dependencies.md | You need to add, remove, or pin a dependency safely inside the sandbox -- venvs, lockfiles, no sudo, no piped installs. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

