agentleFS
itsthestrangeritsthestranger/strangeClaw/skills/code-project/SKILL.md

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

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
  1. Distinctive:

    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 …

    line 11
  2. Very specific:

    If they aren't enabled, shell alone (cat, redirection, sed) still works for reading and editing files.

    line 21
  3. Very specific:

    Detect first: Run scripts/detect_toolchain.sh [dir] before touching anything, even for a project that "looks" like a language you recognize.

    line 25
  4. Very specific:

    Scaffold only if starting fresh: If detect_toolchain.sh reports language: unknown and the task is to start a new Python project, run …

    line 33
  5. Very specific:

    Run tests: Run scripts/run_tests.sh [dir].

    line 39

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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 in references/debugging.md (reading tracebacks, editing source) does. If they aren't enabled, shell alone (cat, redirection, sed) still works for reading and editing files.

Workflow

  1. 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 in dir.
  2. Read the matching toolchain reference. Once you know language, read its section in references/toolchains.md for house conventions (lockfile discipline, layout gotchas, per-language test-runner quirks) before running anything else.
  3. Scaffold only if starting fresh. If detect_toolchain.sh reports language: unknown and the task is to start a new Python project, run scripts/init_python_project.sh <dir> [package_name]. It writes a pyproject.toml (from assets/pyproject.toml), a .gitignore (from assets/gitignore), src/<pkg>/__init__.py, and tests/test_smoke.py, and git inits the directory when git is available.
  4. Run tests. Run scripts/run_tests.sh [dir]. It detects and invokes the right runner (pytest / jest, vitest, mocha, or npm test / go test / cargo test), prints the raw output followed by a concise failure summary, and exits with the runner's own status -- 2 if no runner could be detected.
  5. On any failure, follow references/debugging.md's reproduce -> isolate -> hypothesize -> fix loop instead of guessing at a patch from the failure summary alone.
  6. Before adding, removing, or upgrading a dependency, read references/dependencies.md -- the sandbox has no sudo and no curl | sh-style installs are safe to run.
  7. Before reporting a fix as done, activate verify-work and 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.mdYou know the detected language and need its idioms: which package manager the lockfile implies, layout gotchas, how each runner is actually invoked.
references/testing.mdYou need to choose test flags, interpret run_tests.sh output, or decide what "done" means before reporting a fix finished.
references/debugging.mdrun_tests.sh (or a build) failed and you need a disciplined loop instead of trial-and-error edits.
references/dependencies.mdYou need to add, remove, or pin a dependency safely inside the sandbox -- venvs, lockfiles, no sudo, no piped installs.

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.