Project init

From athola/claude-night-market · View interactive version

Project init is an AI agent skill from the GitHub repository athola/claude-night-market. Scaffolds new projects with git, CI/CD workflows, pre-commit hooks, and build config. Use when starting a new Python, Rust, or TypeScript project from scratch.

How to use this skill

Skill file

Project Initialization Skill

Interactive workflow for initializing new software projects with complete development infrastructure.

Use When

Workflow

1. Detect or Select Language

Load modules/language-detection.md

2. Collect Project Metadata

Load modules/metadata-collection.md

Gather:

3. Review Existing Files

Check for existing configurations:

ls -la

Verification: Run the command with --help flag to verify availability.

If files exist (Makefile, .gitignore, etc.):

4. Render and Apply Templates

Load modules/template-rendering.md

Run initialization script:

python3 plugins/attune/scripts/attune_init.py \
  --lang {{LANGUAGE}} \
  --name {{PROJECT_NAME}} \
  --author {{AUTHOR}} \
  --email {{EMAIL}} \
  --python-version {{PYTHON_VERSION}} \
  --description {{DESCRIPTION}} \
  --path .

Verification: Run the command with --help flag to verify availability.

The script also scaffolds the project decision journal: docs/tradeoffs.md

and docs/lessons-learned.md. These are append-only logs that later workflows

(brainstorm, specify, plan, execute, review) write to as decisions and lessons

arise. Existing journal files are never overwritten. The format follows the

leyline:decision-journal contract; init uses leyline's template when present

and a vendored copy otherwise, so it works with or without leyline installed.

Verification: Confirm docs/tradeoffs.md and docs/lessons-learned.md

exist and each contains an ## Active index and an ## Archive section.

5. Initialize Git (if needed)

# Check if git is initialized
if [ ! -d .git ]; then
  git init
  echo "Git repository initialized"
fi

Verification: Run git status to confirm working tree state.

6. Verify Setup

Validate setup:

# Check Makefile targets
make help

# List created files
git status

Verification: Run git status to confirm working tree state.

7. Next Steps

Advise user to:

# Install dependencies and hooks
make dev-setup

# Run tests to verify setup
make test

# See all available commands
make help

Verification: Run pytest -v to verify tests pass.

Error Handling

Success Criteria

Exit Criteria

reported) with no unconfirmed overwrites.

## Active index and an ## Archive section.

Examples

Example 1: New Python Project

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.