New project

From phatblat/dotfiles · View interactive version

New project is an AI agent skill from the GitHub repository phatblat/dotfiles. Use when invoked as $new-project or when creating a brand-new repository from scratch. Scaffolds mise tools, a just task surface, standard repo files, and CI.

How to use this skill

Skill file

New-Project Skill

Scaffold a brand-new repository so mise owns every pinned tool and just

owns every command — even where the language's package manager could run

scripts, because just --list is the discovery surface every harness and

human uses to find what a project can do. Four stacks are supported: Python

(uv), TypeScript (bun), Rust (cargo), and Go. Tool versions are never

hardcoded in this skill; they are resolved to the latest GA release at

scaffold time via mise use --pin <backend>:<tool>@latest, with the backend

looked up by mise registry <tool> (for example aqua:casey/just).

When to Use

one of the four supported stacks.

When Not to Use

job. Read it directly.

template; tell the user the stack is unsupported.

Inputs

Collect before starting, asking the user for whatever is not already given:

not touched — this is the project's description, not the skill's).

otherwise ./<name>. **Never scaffold over a non-empty directory without

asking first** — confirm with the user before writing into a directory that

already has files in it.

the answer when given.

Authority

Before writing or editing any justfile, read ~/.agents/skills/justfile/SKILL.md

first — it is the source of truth for Just conventions (settings header,

_default recipe, the 10-recipe grouping threshold, the outdated/upgrade

pair, and mise scope flags). The per-stack templates in references/ already

conform to it. Anything a template does not cover follows that skill.

Shared Sequence

Stack-independent steps, in order. Full stack-specific commands, manifests,

and file bodies live in references/<stack>.md — read the matching file

before step 2.

  1. mkdir -p <dir> && cd <dir>
  2. mise use --pin <backend>:<tool>@latest … for the stack's tool list (see

the reference file), always with the backend prefix. This creates

mise.toml and installs the tools.

  1. Append the stack's [deps.*] and [settings] blocks with their comments

(see the reference file — Rust has neither, since no mise deps provider

exists for cargo), then run mise trust and mise fmt.

  1. Run the stack's native init (see the reference file).
  2. Write justfile from the stack template, substituting the project name.
  3. Write .gitignore, README.md, LICENSE.md, .editorconfig, AGENTS.md,

and .github/workflows/ci.yml from the shared templates below.

  1. Write the stack's one real test (see the reference file).
  2. git init -b main, git add -A, and create the initial commit with

subject feat: initial project scaffold, appending the harness

attribution trailer required by ~/.agents/harness/instructions.md.

  1. Run just check and report the result. A red just check is a scaffold

failure, not a caveat — fix it before telling the user the project is

ready.

Shared File Templates

These five files are identical across every stack except where noted.

`LICENSE.md`

The MIT License (MIT)

Copyright © <current year> Ben Chatelain

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

`.editorconfig`

root = true

[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
indent_size = 2
indent_style = space
trim_trailing_whitespace = true

# Trailing spaces have meaning in Markdown
[*.md]
trim_trailing_whitespace = false

Add a stack-specific override block at the end:

`README.md`

# <name>

<description>

## Development

\`\`\`bash
just deps    # install pinned tools and dependencies
just check   # formatting, lint, types, tests
\`\`\`

`just --list` shows every recipe.

## License

MIT © Ben Chatelain

`AGENTS.md`

# Repository Guidelines

## Toolchain

`mise.toml` pins every tool; `just` is the only command surface. Prefer adding a
recipe over documenting a raw command, and run tools through the recipes so the
pinned versions are the ones that execute.

## Commands

- `just deps` — install pinned tools and project dependencies
- `just check` — the full gate: formatting, lint, types, tests
- `just test` — tests only
- `just outdated` / `just upgrade` — report, then apply, tool and dependency updates

## Conventions

- Formatting is owned by the formatter. Run `just format`; never hand-format.
- Add a test with every behavior change; `just check` must be green before pushing.

`.github/workflows/ci.yml`

name: CI

on:
  push:
    branches: [main]
  pull_request:
  workflow_dispatch:

permissions:
  contents: read

jobs:
  check:
    runs-on: ubuntu-latest
    timeout-minutes: 15
    steps:
      - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
      - uses: jdx/mise-action@3c2e0cf82a5b2e5249f0d3635a4d83d0ae861518 # v4.2.5
      - run: just deps
      - run: just check

The action's own mise install auto-trusts the project config, which is what

makes the [settings] experimental = true block take effect for mise deps

in CI. Do not also pass experimental: true to the action — one source of

truth.

Conventions That Hold Across Every Stack

Never copy a version number out of this skill or a reference file.

every recipe carries a [group(...)] attribute and the groups are

separated by #\n# <name> group recipes\n# comment blocks. Group order:

configuration, build, checks, tests.

configuration; build, run → build; format-check, lint,

typecheck, check → checks; test → tests.

and just --fmt / just --fmt --check, so the project's own config files

are held to the same gate.

the - line prefix; upgrade masks nothing.

TypeScript, bun update --latest). The justfile skill's default is

range-preserving, but these pins are exact, so without --bump the recipe

would be a no-op — this is a deliberate deviation from that skill's default,

made because every tool this scaffold pins is pinned to an exact version.

scaffold writes the matching .gitignore in the same run and every listed

path is ignored. deps restores everything clean removes.

a recipe needs directly, never a wrapper script the package manager exposes.

Do NOT

from mise use --pin <tool>@latest at scaffold time.

underlying command can be written directly in the justfile.

only project-scoped, mise-pinned tools belong there.

the pinned interpreter.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.