Skip to content

TASKS.md — scaffolder v0.7.1 sc updates + doc cleanup + workflow automation

TASKS.md — scaffolder v0.7.1 sc updates + doc cleanup + workflow automation

Section titled “TASKS.md — scaffolder v0.7.1 sc updates + doc cleanup + workflow automation”
  • Always work on a feature branch, never directly on dev or main
  • Read CLAUDE.md and STANDARDS.md before starting any work
  • Read sessions/CURRENT.md for project state
  • Complete each task fully before moving to the next
  • Do not add features not listed here
  • Follow Conventional Commits format on every commit
  • Update sessions/CURRENT.md at the end of every session
  • All merges require PRs — no direct merges to dev or main

Create one branch for all tasks: feature/v0.7.1-sc-updates All tasks committed to that branch. Final PR: feature/v0.7.1-sc-updates → dev (PR required) → main (PR required)

v0.7.1

This release fixes remaining hardcoded values, updates all stale docs and templates for v0.7.0 structure, adds /sc create and /sc exit commands, introduces personal vs. team mode with operator alias, adds staging branch to standards, requires PRs for all merges, and cleans up the scaffolder’s own project docs.

Reference: MASTER-PLAN-v0.7.0-2026-03-15.md in docs/ for full architectural context.

A task is only complete when:

  • File edited or created correctly
  • No hardcoded personal values in templates
  • All references use v0.7.0 file structure (sessions/CURRENT.md, CLAUDE.md, etc.)
  • All AI name references use [CHAT_AI_NAME]/[CODE_AI_NAME] in templates
  • npm run build passes
  • Committed with correct message format
  • No unintended changes to other files

Release checklist (before dev → main PR)

Section titled “Release checklist (before dev → main PR)”
  • All tasks below complete and committed
  • CHANGELOG.md updated for v0.7.1
  • Version bumped in package.json
  • versions.json updated (latest: “0.7.1”, new version entry)
  • README.md badge updated to v0.7.1
  • STATUS.md updated to v0.7.1
  • npm run build passes clean
  • sc create --dry-run "test" works correctly

SECTION A — Source code fixes (missed hardcodes + new commands)

Section titled “SECTION A — Source code fixes (missed hardcodes + new commands)”

Task 1 — Fix hardcoded BASE_DIR in updateProject.ts

Section titled “Task 1 — Fix hardcoded BASE_DIR in updateProject.ts”

Branch: feature/v0.7.1-sc-updates Commit: fix: replace hardcoded BASE_DIR with config-derived path in updateProject

File: src/updateProject.ts

Line 7:

const BASE_DIR = "/mnt/d/Claude/projects";

Add import:

import { getConfig } from "./config";

In updateProject() and rollbackProject(), derive the path:

const config = getConfig();
const baseDir = config.defaultDrive ? `${config.defaultDrive}/projects` : "/mnt/d/Claude/projects";

Replace all BASE_DIR references with baseDir.

Also update createBackup() managed files list to include v0.7.0 files:

  • Add: "CLAUDE.md", "sessions/CURRENT.md"

Definition of done: Zero hardcoded paths in updateProject.ts. Build passes.


Task 2 — Fix hardcoded purlshq in sc.ts handleStatus

Section titled “Task 2 — Fix hardcoded purlshq in sc.ts handleStatus”

Branch: feature/v0.7.1-sc-updates Commit: fix: replace hardcoded purlshq with config-derived username in handleStatus

File: src/sc.ts

In handleStatus, find:

`gh issue list --repo purlshq/${targetProject}`

Replace with:

const githubUser = config.githubUsername || config.defaultGitHub || "purlshq";
`gh issue list --repo ${githubUser}/${targetProject}`

Definition of done: No hardcoded username. Build passes.


Branch: feature/v0.7.1-sc-updates Commit: feat: add sc create command routing through sc.ts

File: src/index.ts — export handleCreate function.

File: src/sc.ts — add case for “create” in switch.

File: src/scHelp.ts — add create to COMMANDS. Update “new” topic to reference sc create.

Definition of done: sc create "test" works. create "test" still works. Build passes.


Branch: feature/v0.7.1-sc-updates Commit: feat: add sc exit command for clean session close

File: src/sc.ts — add case for “exit” and handleExit function.

File: src/scHelp.ts — add exit to COMMANDS.

Also add create and exit to the main —help output in sc.ts.

Definition of done: /sc exit ends session and exits. Build passes.


Task 5 — Add operatorAlias, mode, operatorDescription to config and /sc init

Section titled “Task 5 — Add operatorAlias, mode, operatorDescription to config and /sc init”

Branch: feature/v0.7.1-sc-updates Commit: feat: add operatorAlias, mode, operatorDescription to config and sc init

File: src/config.ts — add three new fields to interface and defaults.

File: src/sc.ts — update handleInit():

  • Add mode prompt (personal/team) before AI names
  • Add operatorAlias prompt (max 5 chars)
  • Add operatorDescription prompt (“Describe yourself and your role”)
  • Team mode: skip AI name prompts, lock to Chat/Code
  • Personal mode: AI name prompts with defaults changed to Chat/Code
  • End of init: print template location and credentials folder reminder
  • Update handleDone() to use operatorAlias from config

Definition of done: /sc init has new fields. Team mode locks names. Build passes.



Branch: feature/v0.7.1-sc-updates Commit: docs: update TASKS.md template for v0.7.0 references

File: templates/TASKS.md

  • “Rules for Claude Code” → “Rules for [CODE_AI_NAME]”
  • “BUILDER-INSTRUCTIONS.md” → “CLAUDE.md”
  • “SESSION-NOTES.md” → “sessions/CURRENT.md”

Definition of done: Template uses v0.7.0 names and placeholders.


Branch: feature/v0.7.1-sc-updates Commit: docs: update STANDARDS.md for v0.7.0 structure and PR-everywhere rule

File: templates/STANDARDS.md

  1. Session handoff section: replace SESSION-NOTES.md/CONTEXT.md with sessions/CURRENT.md
  2. PR workflow: require PRs for ALL merges (feature→dev, dev→staging, staging→main, dev→main)
  3. Branch strategy: add staging branch (optional for solo, recommended for team/professional+)
  4. Replace all remaining old file name references

Definition of done: Standards reflect v0.7.0 structure. PRs everywhere. Staging documented.


Task 8 — Update templates/ARCHITECT-REFERENCE.md

Section titled “Task 8 — Update templates/ARCHITECT-REFERENCE.md”

Branch: feature/v0.7.1-sc-updates Commit: docs: update ARCHITECT-REFERENCE.md template for v0.7.0

File: templates/ARCHITECT-REFERENCE.md

  1. “Solo developer” → “[OPERATOR_DESCRIPTION]”
  2. Project structure diagram → v0.7.0 layout
  3. Workflow → remove boot sequence, add sc build reference
  4. Session start → one-file upload (sessions/CURRENT.md)
  5. Add /sc create and /sc exit to commands
  6. Docs table → CLAUDE.md replaces BUILDER-INSTRUCTIONS.md

Note: add [OPERATOR_DESCRIPTION] as a new placeholder. Update replaceAiNames in createDocs.ts to also replace [OPERATOR_DESCRIPTION] from config.operatorDescription with fallback “Solo developer, projects built to scale”.

Definition of done: Template v0.7.0 current. New placeholder works.


Task 9 — Update templates/PROJECT-INSTRUCTIONS.md

Section titled “Task 9 — Update templates/PROJECT-INSTRUCTIONS.md”

Branch: feature/v0.7.1-sc-updates Commit: docs: update PROJECT-INSTRUCTIONS.md template for v0.7.0 structure

File: templates/PROJECT-INSTRUCTIONS.md

  1. Version → v0.7.1
  2. All file references → v0.7.0 names
  3. Session start → one-file upload flow
  4. Boot sequence → removed, reference sc build
  5. /exit → /sc exit
  6. Folder structure diagram → v0.7.0
  7. PR workflow → PRs everywhere, staging branch
  8. Add /sc create and /sc exit to commands
  9. Add discovery self-check before producing docs
  10. End of session → session log production, not CHAT-LOG

Definition of done: Fully reflects v0.7.0 structure with self-check behavior.


Task 10 — Update _system/CHAT-REFERENCE.md

Section titled “Task 10 — Update _system/CHAT-REFERENCE.md”

Branch: feature/v0.7.1-sc-updates Commit: docs: update CHAT-REFERENCE.md for v0.7.0

File: /mnt/d/Claude/_system/CHAT-REFERENCE.md (outside repo)

  1. Update project structure to v0.7.0
  2. Remove boot sequence, add sc build
  3. Session start → one-file upload
  4. Add /sc create and /sc exit
  5. Keep Purls-specific rules (11-14)

Definition of done: Personal file current. Personal values preserved.


Task 11 — Update scaffolder’s own project docs

Section titled “Task 11 — Update scaffolder’s own project docs”

Branch: feature/v0.7.1-sc-updates Commit: docs: update scaffolder SPEC, ARCHITECTURE, STATUS, TASKS for current state

  • docs/SPEC.md — rewrite for v0.7.0+ (not v0.1.0 description)
  • docs/ARCHITECTURE.md — verify current, update if stale
  • STATUS.md — update to v0.7.1, current milestone, issues
  • docs/TASKS.md — update Rules section references

Definition of done: Scaffolder docs reflect actual current state.


Task 12 — Update docs/COMMANDS.md, CUSTOMIZE.md, INSTALL.md

Section titled “Task 12 — Update docs/COMMANDS.md, CUSTOMIZE.md, INSTALL.md”

Branch: feature/v0.7.1-sc-updates Commit: docs: update COMMANDS, CUSTOMIZE, INSTALL for v0.7.1

  • docs/COMMANDS.md — add sc create, sc exit, fix sc done references
  • docs/CUSTOMIZE.md — add mode, operatorAlias, operatorDescription, template customization section, update defaults
  • docs/INSTALL.md — add new init fields, update commands list, sc create

Definition of done: All GitHub docs current.


Task 13 — Fix stale references in templates/SETUP-GUIDE.md

Section titled “Task 13 — Fix stale references in templates/SETUP-GUIDE.md”

Branch: feature/v0.7.1-sc-updates Commit: docs: fix stale references in SETUP-GUIDE.md

Targeted fixes only (full rewrite is Phase 4):

  1. Section 12: remove CLAUDE-CHAT.md copy line
  2. Section 14: reference PROJECT-INSTRUCTIONS.md from _system/
  3. Add sc create alongside create references
  4. Replace [ARCHITECT_NAME]/[BUILDER_NAME] with [CHAT_AI_NAME]/[CODE_AI_NAME]
  5. “You’re ready” → sc create

Definition of done: No stale file references. Placeholders updated.


Task 14 — Update README.md and SECURITY.md

Section titled “Task 14 — Update README.md and SECURITY.md”

Branch: feature/v0.7.1-sc-updates Commit: docs: update README and SECURITY for v0.7.1

  • README: sc create in quick start, add sc create/exit to commands, update requirements note, update “What you get”
  • SECURITY.md: supported versions → 0.7.x

Definition of done: Both files current.



Task 15 — Version bump, CHANGELOG, migration, and PR

Section titled “Task 15 — Version bump, CHANGELOG, migration, and PR”

Branch: feature/v0.7.1-sc-updates Commit: chore: bump version to 0.7.1 Commit: docs: update CHANGELOG for v0.7.1

  1. Bump package.json to 0.7.1
  2. Update versions.json (latest: “0.7.1”, add entry with breaking: true)
  3. Update CHANGELOG.md
  4. Update README badge
  5. Create migration src/migrations/v0.7.0-to-v0.7.1.ts, register in index.ts
  6. PR: feature → dev (PR required)
  7. Merge dev (via PR)
  8. Verify build, sc help, sc create —dry-run
  9. PR: dev → main
  10. Report PR URL to operator
  11. After merge: tag v0.7.1
  12. Update sessions/CURRENT.md
  13. Push all changes

Definition of done: v0.7.1 tagged on main. Everything works. All docs current. Build clean.