agentleFS
rafagomesrafagomes/ai-workflow/skills/new-project/SKILL.md

new-project

Skill9 starsChanged 8 months agoMITView on GitHub

Scaffold a new project with the full AI-assisted development workflow — Makefile targets, linter/formatter configs, pre-commit hooks, CLAUDE.md, docs skeleton, tailored to the chosen stack (python, go, typescript/nextjs, rust, etc.). Use when the user says 'start a new project', 'bootstrap a repo', 'scaffold X', 'set up a fresh codebase for Y', 'init a new service'.

  • Reads credentials

27 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use handoff.

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.
  • MicrosoftSkill

    handoff

    Compact the current conversation into a handoff document for another agent to pick up.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

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

  • 0

    Common

    Most of the 23 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    If no language/framework was given, ask the user:

    line 21
  2. Distinctive:

    Create the project directory inside the current working directory and initialize git:

    line 28
  3. Distinctive:

    Create a CLAUDE.md at the project root tailored to the language/framework:

    line 56
  4. Very specific:

    Create .claude/settings.json with hooks appropriate to the language:

    line 88
  5. Very specific:

    Create a Makefile with standard targets for the chosen language/framework:

    line 106
  6. Very specific:

    Create .gitkeep files to preserve directory structure:

    line 131

“Common” is measured: kept by at least 6 in 10 of the 23 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 with the AI-assisted development workflow.

Argument format: <project-name> [language/framework]

  • <project-name> (required) — name of the project directory to create
  • [language/framework] (optional) — the tech stack, used to tailor Makefile targets, linter config, .gitignore, and pre-commit hooks. Examples: python, python/fastapi, go, typescript/nextjs, rust. If omitted, you will be asked.

Examples:

  • /new-project my-api python/fastapi — creates ./my-api/ with Python/FastAPI tooling
  • /new-project my-cli go — creates ./my-cli/ with Go tooling
  • /new-project my-app — creates ./my-app/, asks what stack to use

Process

1. Interview (if needed)

If no language/framework was given, ask the user:

  • What language/framework?
  • What type of project? (API, CLI, library, web app, etc.)
  • Any specific tooling preferences? (test framework, linter, etc.)

2. Initialize the project

Create the project directory inside the current working directory and initialize git:

mkdir -p <project-name>
cd <project-name>
git init

The project is created at $PWD/<project-name>/. If you want it elsewhere, cd to the desired parent directory first.

3. Create workflow structure

Create these directories:

.claude/
.claude/agents/
docs/
docs/specs/
docs/roadmap/
docs/adr/
docs/rfc/

Note: Skills are installed globally at ~/.claude/skills/. Do NOT create project-level skill copies — they'd duplicate and drift from the global versions. The global skills (/architecture, /tdd, /security, /adr, /rfc, /spec, /roadmap, /feature, /fix, /review, /autopilot) are already available. For stack-aware code review, install Anthropic's official code-review skill from claude-code-plugins. Only create project-level agents and settings.

4. Create CLAUDE.md

Create a CLAUDE.md at the project root tailored to the language/framework:

# CLAUDE.md

## Build & Test
- `make test` — run test suite
- `make lint` — run linters
- `make typecheck` — type checking (if applicable)
- `make build` — build the project (if applicable)

## Code Style
- [Language-specific conventions that Claude might get wrong]

## Architecture
- [Brief description of project structure]

## Workflow
- All PRs require passing CI + human review
- Commit messages use conventional commits (feat:, fix:, refactor:, chore:)
- Security-sensitive changes require /sec-review before PR
- Features start with a spec in docs/specs/

Adapt the build commands and style section to the chosen language/framework.

5. Create project-level agents

Copy the security-reviewer and architecture-reviewer into .claude/agents/, tailored to the project's language if needed.

6. Create project-level settings

Create .claude/settings.json with hooks appropriate to the language:

{
  "hooks": {
    "PostToolUse": [
      {
        "matcher": "Edit|Write",
        "command": "make lint-changed 2>&1 | head -20",
        "description": "Lint after every file edit"
      }
    ]
  }
}

7. Create Makefile

Create a Makefile with standard targets for the chosen language/framework:

  • test — run tests
  • lint — run linter
  • typecheck — run type checker (if applicable)
  • build — build (if applicable)
  • lint-changed — lint only changed files
  • security-scan — run security scanner (gitleaks, bandit, gosec, etc.)

8. Create .pre-commit-config.yaml

Set up pre-commit hooks:

  • Language-appropriate linter
  • Type checker (if applicable)
  • Test runner
  • gitleaks for secret detection

9. Create .gitignore

Appropriate for the language/framework. Always include:

  • .claude/ local files
  • .env
  • Language-specific build artifacts

10. Create initial docs

Create .gitkeep files to preserve directory structure:

  • docs/specs/.gitkeep
  • docs/roadmap/.gitkeep
  • docs/adr/.gitkeep
  • docs/rfc/.gitkeep

11. Summary

Tell the user what was created and suggest next steps:

  1. cd <project-name>
  2. pre-commit install
  3. /prd <project-name> — define what we're building
  4. /architecture — define system structure
  5. /tdd — define testing strategy, dev environment, CI/CD
  6. /security — define the threat model (if applicable)
  7. /spec <first-feature> — write your first feature spec
  8. /feature docs/specs/<first-feature>.md — implement it

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.