agentleFS
MaGe1993MaGe1993/Claude-Code-Base-Harness/.claude/skills/new-project/SKILL.md

new-project

Skill1 starsChanged 5 months agoMITView on GitHub

Scaffold a new Claude Code project — directory structure, desktop shortcut, and delegation to native skills per document. For projects under ~/.claude/projects/ or nested in a project.

51 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use checkpoint, prd and 9 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.
  • genomewalkerSkill

    checkpoint

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

    Also in 3 projects that use this

  • GitHubSkill

    prd

    Generate high-quality Product Requirements Documents (PRDs) for software systems and AI-powered features. Includes executive summaries, user stories, technical specifications, and risk analysis.

    Also in 3 projects that use this

  • SentrySkill

    spec

    Produce a verified spec — problem, desired outcome, and acceptance criteria — before building. Use when given a GitHub/Linear issue link, when starting from a fuzzy in-conversation idea, or asked to "figure out what to do" / "scope this" / "what should I build" — whenever the *what* isn't yet pinned down. Grills the ambiguities, checks the premise against the code, and produces acceptance criteria you sign off on — then hands to design-first.

    Also in 3 projects that use this

  • GoogleSkill

    domain-modeling

    Build and sharpen a project's domain model. Use when the user wants to pin down domain terminology or a ubiquitous language, record an architectural decision, or when another skill needs to maintain the domain model.

    Also in 4 projects that use this

  • SentrySkill

    review

    Fixture review skill.

    Also in 5 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 5 projects that use this

  • +1 more from getsentry

The file

We split this skill into the rules it gives an agent

11 rules. 0 are common, 10 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 48 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

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

    Create a complete, ready-to-use project folder by orchestrating the harness's existing skills.

    line 10
  2. Distinctive:

    Never create a project without confirming the name with the user first.

    line 24
  3. Distinctive:

    Never create a desktop shortcut without explicit yes/no confirmation.

    line 25
  4. Distinctive:

    Never overwrite an existing directory — stop and report if the target path exists.

    line 26
  5. Distinctive:

    Always delegate document creation to the owning skill — never write README, CHANGELOG, LICENSE, CLAUDE.local.md, or settings files directly.

    line 27
  6. Distinctive:

    Verify the target path does not exist.

    line 42
  7. Distinctive:

    Ask: "Create a desktop shortcut?

    line 43
  8. Distinctive:

    Create the directory tree via PowerShell (Windows) or Bash (macOS/Linux):

    line 44
  9. Distinctive:

    Write directly (no skill needed):

    line 64
  10. Distinctive:

    If desktop shortcut confirmed, run the platform snippet from §5.1.

    line 90
  11. Distinctive:

    All documents produced by their owning skills

    line 116

“Common” is measured: kept by at least 6 in 10 of the 48 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

Project New

1§ Purpose

Create a complete, ready-to-use project folder by orchestrating the harness's existing skills. Each document is produced by the skill that owns it. This skill handles only what no other skill covers: directory structure, desktop shortcut, and .gitignore.

Projects nest arbitrarily — each project's .claude/projects/ holds child projects of identical structure.

2§ Use when

  • User wants to create a new Claude Code project.
  • User wants to add a nested sub-project inside an existing project.
  • User requests a standard project scaffold.

3§ Hard constraints

  • Never create a project without confirming the name with the user first.
  • Never create a desktop shortcut without explicit yes/no confirmation.
  • Never overwrite an existing directory — stop and report if the target path exists.
  • Always delegate document creation to the owning skill — never write README, CHANGELOG, LICENSE, CLAUDE.local.md, or settings files directly.

4§ Decision rules

  • Parent directory not specified: use $HOME/.claude/projects/ as default.
  • CWD is inside <project>/.claude/projects/: offer that path as parent; confirm.
  • Desktop shortcut declined: skip silently, do not re-ask.
  • Windows: use WScript.Shell COM object to create a .lnk file on the Desktop.
  • macOS/Linux: create a symlink in ~/Desktop/ if that directory exists.

5§ Workflow

  1. Confirm the project name. Derive a filesystem-safe slug (lowercase, spaces to hyphens, no special characters). Display name and slug may differ.
  2. Determine parent directory: check CWD or default to $HOME/.claude/projects/. Confirm the full target path <parent>/<slug>/ before proceeding.
  3. Verify the target path does not exist; stop and report if it does.
  4. Ask: "Create a desktop shortcut? (yes/no)"
  5. Create the directory tree via PowerShell (Windows) or Bash (macOS/Linux):
    <slug>/
    ├── .claude/
    │   ├── projects/
    │   ├── rules/
    │   │   └── rules.index.toon    ← direct (empty index, header row only)
    │   ├── skills/
    │   │   └── skills.index.toon   ← direct (empty index, header row only)
    │   ├── agents/
    │   │   └── agents.index.toon   ← direct (empty index, header row only)
    │   └── settings.local.json     ← settings skill
    ├── CLAUDE.local.md              ← file-claude skill
    ├── .gitignore                   ← direct (Claude git knowledge)
    ├── LICENSE                      ← file-license skill
    ├── README.md                    ← file-readme skill
    ├── README.de.md                 ← file-readme skill
    ├── CHANGELOG.md                 ← file-changelog skill
    └── PROJECT.md                   ← file-project skill
  6. Write directly (no skill needed):
    • .gitignore — write from git knowledge; include standard Node/Python/OS ignores plus .claude/settings.local.json and CLAUDE.local.md.
    • Three empty TOON index files — write each with a # descriptor comment and a header row only; no data rows; no trailing newline (TOON spec):
      # Rules index. TOON format: header row of field names separated by " | ", one rule per subsequent row.
      name | description
      # Skills index. TOON format: header row of field names separated by " | ", one skill per subsequent row.
      name | description
      # Agents index. TOON format: header row of field names separated by " | ", one agent per subsequent row.
      name | description
  7. Invoke skills in order — each produces its file into the new project root. Invoke file-claude after the index files exist so it detects the directories and adds discovery and maintenance instructions automatically:
    • settings: create .claude/settings.local.json with empty permissions.
    • file-claude: produce CLAUDE.local.md using the file-claude template; file name is CLAUDE.local.md, not CLAUDE.md.
    • file-license: produce LICENSE (ask copyright holder name).
    • file-readme: produce README.md and README.de.md.
    • file-changelog: produce CHANGELOG.md with a [0.1.0] initial entry.
    • file-project: produce PROJECT.md (create mode; minimal for a fresh scaffold).
  8. If desktop shortcut confirmed, run the platform snippet from §5.1.
  9. Report: print the full created tree and shortcut path (if created). Note which index files were created and that discovery instructions were added to CLAUDE.local.md.

5.1§ Desktop shortcut snippets

Windows (PowerShell):

$target  = "<ABSOLUTE_PROJECT_PATH>"
$lnkPath = "$env:USERPROFILE\Desktop\<SLUG>.lnk"
$shell   = New-Object -ComObject WScript.Shell
$lnk     = $shell.CreateShortcut($lnkPath)
$lnk.TargetPath       = $target
$lnk.WorkingDirectory = $target
$lnk.Description      = "<PROJECT_NAME> — Claude Code project"
$lnk.Save()

macOS/Linux (Bash):

ln -s "<ABSOLUTE_PROJECT_PATH>" "$HOME/Desktop/<SLUG>"

6§ Output contract

Must include:

  • Complete directory tree from §5 step 5
  • Three empty TOON index files with descriptor comment and header row only
  • All documents produced by their owning skills
  • .gitignore written from git knowledge
  • User confirmation before any desktop shortcut
  • Summary listing every created path

Must not include:

  • Directly written README, CHANGELOG, LICENSE, PROJECT.md, or settings content (delegate to skills)
  • Desktop shortcuts without explicit confirmation
  • Data rows in the empty index files — header row only at scaffold time

7§ Associated documents

  • [assets/new-project.example.md] — example of a completed scaffold

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.