Skip to content

feat(common): add flake-init command for project scaffolding#1

Merged
svnlto merged 3 commits intomainfrom
feat/flake-init-command
Feb 28, 2026
Merged

feat(common): add flake-init command for project scaffolding#1
svnlto merged 3 commits intomainfrom
feat/flake-init-command

Conversation

@svnlto
Copy link
Owner

@svnlto svnlto commented Feb 28, 2026

Summary

  • Adds flake-init shell command that scaffolds new projects using native Nix flake templates
  • Minimal template includes devShell (with pre-commit), direnv .envrc, .gitignore, and .pre-commit-config.yaml
  • Extensible via flake-init <template-name> for future templates

Test plan

  • nixswitch to rebuild
  • cd $(mktemp -d) && flake-init — verify all 4 files are created
  • nix flake check in scaffolded directory
  • nix develop enters the devShell
  • flake-init with no args defaults to minimal

svnlto and others added 3 commits February 28, 2026 14:09
CLAUDE.md: 732 → 131 lines. Removed generic advice, stale references
(scripts module, Linear integration), verbose recovery docs. Added
commit conventions, justfile commands, skills integration, mkIf pitfall.

README.md: 266 → 97 lines. Removed emoji spam, stale package lists,
marketing filler. Fixed first-install commands to use actual binaries
instead of aliases that don't exist yet.

Moved COMMIT_CONVENTION.md to docs/.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Native Nix flake templates with a shell wrapper — `flake-init` scaffolds
a new project with devShell, direnv, gitignore, and pre-commit config.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@svnlto svnlto merged commit f0639a1 into main Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant