team-repo-setup
v0.1.0
Published
Turn two markdown files into a self-running hackathon repo: message board, task backlog, prerequisite tracking, agent responders, and an automatic PR pipeline.
Downloads
396
Maintainers
Readme
hack-setup
Turn a project brief and an event brief into a hackathon repository with a GitHub task backlog, pinned message board, integration prerequisites, path-aware CI, and a review, fix, and merge pipeline. Workers use any agent CLI; responders answer teammates' board questions from the worker's redacted context.
Quick start: tell your agent
In a clone of your team's repository, give your agent this exact prompt (replace owner/repo with your repository):
Run npx team-repo-setup skill and follow it to set up owner/repoThe agent starts at Part A, preserves existing inputs, creates missing starters, and interviews you in short rounds. It fills PROJECT.md and HACKATHON.md, previews the plan, and waits for approval before changing GitHub. Pushing needs separate, explicit permission.
The npm package is team-repo-setup. The CLI command, GitHub repository, and installed skill name remain hack-setup.
Who does what
Team lead: confirm the repository, product scope, team logins, ownership, acceptance checks, sponsor integrations, deadlines, and automation choices. Approve the setup plan, review generated files, and decide when and where to commit and push. Arrange repository permissions and automation credentials.
Teammates: run doctor, complete assigned integration prerequisites, then claim a ready task and work in its own worktree. Keep status current, read the board, and open one PR per task with its acceptance check and devlog fragment. Run a responder in another terminal if you want board questions handled while you work.
npx team-repo-setup doctor
tools/task next
tools/task claim 12
cd "$(tools/wt 12-map-view)"
npx team-repo-setup work -- claude # or your agent CLI
npx team-repo-setup respond # another terminal, same clonePrerequisites
- Node.js 18 or newer and npm for
npx. - Bash, Git, and GitHub CLI (
gh), authenticated with access to the target repository. - A local clone and permission to manage issues, labels, milestones, Actions, and, if enabled, repository settings and branch protection.
- An agent CLI for workers; a headless agent command for responders.
- Reviewer/fixer credentials only for the automation you enable. See the deep reference.
Printing or installing the skill does not need GitHub authentication.
Install the skill
Print the exact packaged instructions for any agent:
npx team-repo-setup skillInstall for Claude Code and Factory Droid:
npx team-repo-setup skill installThis writes ~/.claude/skills/hack-setup/SKILL.md and ~/.factory/skills/hack-setup/SKILL.md. Add other skill roots with repeated --dir; the two defaults are still installed:
npx team-repo-setup skill install --dir "./team skills" --dir "/path/to/other skills"Each root receives hack-setup/SKILL.md. The command creates directories, replaces an existing installed copy, and reports each written path.
Secrets checklist
- [ ] Put names and destinations only in
HACKATHON.md, never credential values. - [ ] Configure
BOT_PUSH_TOKENfor fix-bot pushes that trigger CI. - [ ] If using Claude review or fixes, configure
CLAUDE_CODE_OAUTH_TOKENorANTHROPIC_API_KEY. Configure any other chosen reviewer separately. - [ ] Each integration owner obtains access and stores the named secrets using
tools/task secret NAME, ortools/task secret NAME --local path/.env.localfor a git-ignored local file. - [ ] Run
tools/task verify KEYfor each integration. Record an explicit manual check when no verify command exists. - [ ] Run
npx team-repo-setup doctorand resolve missing items. It reports secret names, not values.
Do not paste secrets into agent prompts, issues, committed files, or logs.
Event timeline
| When | Action |
|---|---|
| Before kickoff | Agree on the demo, ownership, acceptance checks, sponsor criteria, deadlines with timezones, and automation. Approve the plan. |
| First hour | Review and push generated files only with permission; owners verify Phase 0 integrations; everyone runs doctor. |
| During the build | Claim ready tasks, use separate worktrees, keep the board and status current, and let the configured PR pipeline handle review and fixes. |
| Before submission | Finish the final-phase architecture diagram and honest live-versus-mocked sponsor section. Run acceptance checks and rehearse the demo. |
| At the deadline | Confirm submission and pause automation with the board issue's pause label if needed. |
Manual setup and examples
If you prefer to fill the inputs yourself:
npx team-repo-setup init # keeps existing inputs unless --force
$EDITOR PROJECT.md HACKATHON.md
npx team-repo-setup plan # local preview; fix all errors
npx team-repo-setup apply --repo owner/repo # asks before changing GitHubReview the diff before committing. Push only when the team authorizes it.
See fictional Team Lantern's project input, event input, and generated plan. These illustrate the format, not live sponsor services.
Command reference
| Command | What it does |
|---|---|
| hack-setup skill | Print packaged SKILL.md exactly |
| hack-setup skill install [--dir PATH ...] | Install for Claude, Factory, and each extra skill root |
| hack-setup init [--force] | Write starter input files, preserving existing files by default |
| hack-setup plan [--json] [--out FILE] | Preview labels, milestones, issues, files, and settings |
| hack-setup apply --repo O/N [--yes] [--only tasks] [--no-protect] [--force] | Create or reuse setup; asks to confirm unless --yes |
| hack-setup doctor | Check tools, auth, config, secret names, and workflows |
| hack-setup status | Progress by phase, area, person, and requirement |
| hack-setup work [--log FILE] -- CMD... | Run your agent with a status file and session log |
| hack-setup respond [--once] [--interval MIN] [--dry-run] | Answer board mentions from worker context |
For input-based commands, --dir PATH selects one target clone (the last value wins); --project FILE and --hackathon FILE select inputs. Only skill install collects repeated --dir values. Quote paths containing spaces.
GUIDE.md is the deep reference for input formats, workflows, safety, troubleshooting, and all repository tools. SKILL.md contains the agent instructions.
License
MIT
