agentleFS
0xrafasec0xrafasec/ai-workflow/skills/new-project/SKILL.md

new-project

Skill9 starsChanged 20 days agoMITView on GitHub

Scaffold a new project directory for a chosen stack: git init, an AGENTS.md (plus a one-line CLAUDE.md importing it) with the real build and test commands, a Makefile with test and lint targets, a lint-on-edit hook, a .gitignore, secret scanning, a free GitHub Actions CI workflow and the docs/ skeleton the other /wf skills write into. Use for 'start a new project', 'bootstrap a repo', 'scaffold X', 'init a new service'. Creates a new directory only; it does not touch an existing repo.

  • Reads credentials

63 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use wrap-up, checkpoint and 6 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • AnthropicSkill

    wrap-up

    Close out (or revisit) a Claude Managed Agent build — refresh the overview page, recap every primitive the founder now owns, show the run log and live status, suggest 1–2 tailored next upgrades, and sweep hygiene (sessions archived, key only in .env, no literal dates in deployment kickoffs). Use when the founder says "/wrap-up", "wrap up", "close it out", "where do things stand with my agent", or at the end of a /launch-your-agent build.

    Also in 3 projects that use this

  • genomewalkerSkill

    checkpoint

    Save a checkpoint of task status, decisions, active files, and next steps

    Also in 3 projects that use this

  • VercelSkill

    deploy

    Deploy applications to Vercel. Use when the user says "deploy", "deploy to Vercel", "push to production", "deploy my app", or "go live".

    Also in 3 projects that use this

  • sunnyclinches44Skill

    explain

    Explains code using real-world analogies and ASCII diagrams

    Also in 3 projects that use this

  • AWSSkill

    wizard

    Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.

    Also in 3 projects that use this

  • NVIDIASkill

    research

    Before designing a feature, research how comparable libraries solve the problem, check best practices, known pitfalls, and upstream changes. Use when starting a new feature, investigating an unfamiliar area, or the user asks to research something.

    Also in 6 projects that use this

The file

We split this skill into the rules it gives an agent

2 rules. 0 are common, 0 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 57 edited versions we read keep these.

  • 0

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/stacks.md for the chosen stack, then create:

    line 32
  2. Very specific:

    Run make lint and make test once.

    line 64

“Common” is measured: kept by at least 6 in 10 of the 57 edited versions of this file we could read. “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

Scaffold a new project: $ARGUMENTS is <project-name> [language/framework], e.g. my-api python/fastapi, my-cli go, my-app typescript/nextjs.

In hosts that do not substitute $ARGUMENTS (e.g. Codex), it is the text the user wrote after the skill name.

Generate only what you can name a working command for. If a tool for the stack is uncertain, leave it out and say so in the summary. Never write a bracketed placeholder into a generated file.

Process

1. Check the target and the stack

  • The project goes in $PWD/<project-name>/. If that directory exists and is not empty, stop and ask the user to confirm before touching it. Even when confirmed, never overwrite an existing file: skip it and list what you skipped.
  • If no stack was given, ask one AskUserQuestion for stack and project type (API, CLI, library, web app). Where AskUserQuestion is unavailable but the user can answer in chat (e.g. Codex), ask the same question in chat as a short numbered list and wait for the answer; a headless run or a dispatched agent has no such user, and the headless rule applies instead. Take the test runner, linter and formatter from references/stacks.md. If you cannot ask, stop with a one-line error instead of guessing a stack.

2. Initialize

mkdir -p <project-name> && cd <project-name> && git init
mkdir -p docs/specs docs/roadmap docs/adr
touch docs/specs/.gitkeep docs/roadmap/.gitkeep docs/adr/.gitkeep

The wf plugin provides the workflow skills; do not copy them into the project.

3. Tooling

Read references/stacks.md for the chosen stack, then create:

  • Makefile with test, lint, lint-changed (lint only changed files; exit 0 when nothing changed or the repo has no commits), plus typecheck and build only where the stack has them.
  • .gitignore for the stack, always including .claude/settings.local.json (personal overrides; .claude/settings.json is committed), .env and .env.* with !.env.example.
  • .pre-commit-config.yaml with the stack's formatter/linter and gitleaks. Look up gitleaks' current release tag (git ls-remote --tags https://github.com/gitleaks/gitleaks) for rev; never write a guessed one. Keep tests out of pre-commit.
  • .github/workflows/ci.yml, a free CI that runs the Makefile's lint, typecheck (only if the Makefile has it) and test, so the checks that gate local work also gate the PR. It runs on pull_request and on push to the trunk branch, with top-level permissions: contents: read and no secrets. Pin every action to a full commit SHA, looked up with git ls-remote https://github.com/<owner>/<repo> refs/tags/<tag> (for an annotated tag, the ^{} line is the commit); never write a guessed SHA, and leave a # <tag> comment beside it. Use actions/checkout with persist-credentials: false, then the stack's setup step from references/stacks.md (also SHA-pinned) only when the runner lacks the toolchain, then the dependency install if the stack has one, then make lint, make typecheck, make test. No LLM calls, paid services or cloud accounts.
  • .claude/settings.json, so lint failures reach Claude. A PostToolUse hook only does that when it exits 2 and writes to stderr:
{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "hooks": [
          {
            "type": "command",
            "command": "out=$(make lint-changed 2>&1) || { printf '%s\\n' \"$out\" | head -20 >&2; exit 2; }"
          }
        ]
      }
    ]
  }
}

4. AGENTS.md and CLAUDE.md

Write a short AGENTS.md (the instructions file Codex reads) with only what is true of this project: the make commands that exist in the Makefile you generated, the code-style points an agent tends to get wrong for this stack, and a one-line architecture note. Leave out a section you cannot fill. Do not copy the user's global workflow rules (commit style, review, security review); they apply in every project. End with: "Features start from a spec in docs/specs/; see /wf:spec." Then write a CLAUDE.md containing only the line @AGENTS.md (Claude Code's import), so both hosts read the same rules.

5. Verify

Run make lint and make test once. Each should exit 0 on the empty scaffold; if one does not, fix the target or say why. If the stack's toolchain is not installed, scaffold anyway and list what to install.

6. Commit and summarize

Make the initial commit on the trunk branch with the subject chore: scaffold project. Tell the user what was created (CI workflow included) and what was skipped, then suggest next steps:

  1. pre-commit install (after pipx install pre-commit if needed)
  2. /wf:prd <project-name>, then /wf:architecture (until it exists, /wf:feature and /wf:fix infer the testing strategy from the code)
  3. /wf:threat-model if applicable
  4. /wf:spec <first-feature>, then /wf:feature <first-feature>

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.