一键导入
setup
Interactive project setup from the ai-project-template — replaces the static SETUP_GUIDE.md with a guided, multi-step workflow
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Interactive project setup from the ai-project-template — replaces the static SETUP_GUIDE.md with a guided, multi-step workflow
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Cut a clean release — bump versions across all files, update changelog, create GitHub release
Babysit a PR through CI — create, monitor, fix failures, merge when green
Navigate template conventions, audit compliance, and guide upgrades for ai-project-template repos
| name | setup |
| description | Interactive project setup from the ai-project-template — replaces the static SETUP_GUIDE.md with a guided, multi-step workflow |
| category | setup |
| tags | ["setup","initialization","template","onboarding"] |
| version | 1.0.0 |
Guides the agent (or user) through project initialization from the ai-project-template. This skill replaces the static SETUP_GUIDE.md with an interactive, multi-step workflow that lets adopters select which features to include.
Invoke this skill when:
ai-project-template/setup in an OMP session for a new repoBefore running this skill:
SETUP_GUIDE.md and ADOPTING.md for reference detailsThe setup workflow operates on opt-in feature groups. Each group can be accepted or declined. The skill asks, doesn't assume.
| Group | Default | Includes |
|---|---|---|
| Core Docs | On (required) | AGENTS.md, ARCHITECTURE.md, CONTRIBUTING.md, README.md, CHANGELOG.md |
| CI Workflows | On | commit-lint, changelog-check, blob-size-policy, ci.yml |
| Agent Config | On | .omp/agents/ (code-reviewer, adr-writer, changelog-updater) |
| OMP Extensions | On | .omp/rules/, .omp/hooks/, .omp/tools/ |
| OMP Skills | On | .omp/skills/ (cut-release, merge-to-main, template-guide) |
| Dev Container | Off | .devcontainer/ configuration |
| Code Quality | On | .editorconfig, code style thresholds |
| ADR Process | On | docs/decisions/, initial ADR template |
| Git Ignore | On | Language-specific .gitignore patterns |
| CODEOWNERS | Off | CODEOWNERS file |
First, determine whether this is a greenfield setup (from template) or existing repo adoption.
Check for these signals:
.template-version file presentCheck for these signals:
ADOPTING.md exists and is relevantAGENTS.md or project files.git/ exists with commit historyIF existing repo with ADOPTING.md:
→ Use ADOPTING.md logic (simplified flow)
→ Skip Step 2 (project info already exists)
ELSE IF greenfield from template:
→ Full interactive flow
→ Collect project info in Step 2
If greenfield, gather the essential information. Ask the user or infer from existing files.
Project Name
basename $(pwd) or from package.json / Cargo.tomlPrimary Language
package.json (JavaScript/TypeScript), Cargo.toml (Rust), go.mod (Go), *.py (Python)Build Commands
# Detect language
if [ -f "package.json" ]; then
echo "javascript"
elif [ -f "Cargo.toml" ]; then
echo "rust"
elif [ -f "go.mod" ]; then
echo "go"
elif [ -f "*.py" ]; then
echo "python"
fi
Present each feature group to the user with clear descriptions. Use ask with multi: true where appropriate.
Required — always installed. These are the minimum for template compliance.
✓ AGENTS.md — Project context, build commands, code style
✓ ARCHITECTURE.md — System design (scaffold, fill in later)
✓ CONTRIBUTING.md — Contribution guidelines
✓ README.md — Project documentation
✓ CHANGELOG.md — Version history (starts with [Unreleased])
Prompt: "Include CI quality gates?"
✓ .github/workflows/ci.yml — Lint, test, typecheck
✓ .github/workflows/commit-lint.yml — Commit message enforcement
✓ .github/workflows/changelog-check.yml — CHANGELOG update enforcement
✓ .github/workflows/blob-size-policy.yml — File size limits
Prompt: "Include which agent configurations?" (multi-select)
✓ Code Reviewer — Reviews PRs for correctness, security, style
✓ ADR Writer — Generates Architecture Decision Records
✓ Changelog Updater — Updates CHANGELOG.md on releases
Prompt: "Include which OMP extensions?" (multi-select)
✓ Rules — Convention enforcement (TTSR and scope-based)
✓ Hooks — Pre/post lifecycle interceptors
✓ Tools — Custom callable tools
See docs/omp-extensions-guide.md for details.
Prompt: "Include which skills?" (multi-select)
✓ Cut Release — Semantic version bumps and release PRs
✓ Merge to Main — Safe merge with changelog consolidation
✓ Template Guide — Template-specific guidance and audit
✓ Setup (this) — Interactive setup workflow
Prompt: "Include devcontainer configuration?"
✓ .devcontainer/devcontainer.json — VS Code Dev Container setup
✓ .devcontainer/Dockerfile — Container build definition
Recommended for team environments or consistent developer experience.
Prompt: "Include code quality configuration?"
✓ .editorconfig — Consistent editor settings
✓ Code style thresholds — Line limits, nesting depth, function size
Adapted to detected language.
Prompt: "Include ADR (Architecture Decision Record) process?"
✓ docs/decisions/ — Decision log directory
✓ docs/decisions/0000-template.md — Template for new ADRs
Prompt: "Include .gitignore?"
✓ .gitignore — Language-specific patterns for:
- JavaScript/TypeScript: node_modules, build artifacts
- Rust: target/, Cargo.lock
- Go: vendor/, *.exe
- Python: __pycache__, .venv/, *.pyc
Prompt: "Include CODEOWNERS file?"
✓ CODEOWNERS — GitHub team ownership for code review routing
Off by default (requires team configuration).
For each selected feature group:
| Placeholder | Replacement |
|---|---|
{{PROJECT_NAME}} | Detected or provided project name |
{{LANGUAGE}} | Primary language |
{{BUILD_CMD}} | Install command |
{{TEST_CMD}} | Test command |
{{DATE}} | Current date (ISO 8601) |
{{TEMPLATE_VERSION}} | Current template version |
npm install && npm run lint && npm testnode_modules/, dist/, .envcargo fmt --check && cargo clippy && cargo testtarget/, Cargo.lock (if library)go fmt ./... && go vet ./... && go test ./...vendor/, *.exepython -m pytest && python -m mypy .__pycache__/, .venv/, *.pycAfter generation, run the audit to confirm compliance:
bash .omp/skills/template-guide/scripts/audit.sh
[PASS] file-structure: Required directories exist
[PASS] required-files: All required files present
[PASS] yaml-frontmatter: Agent files have valid frontmatter
[PASS] format: Files follow template format
If any checks fail:
SETUP_ISSUES.md for future resolutionAfter successful setup:
Present to the user:
✅ Setup Complete
Project: <name>
Language: <language>
Template Version: <version>
Installed Features:
• Core Docs (AGENTS.md, ARCHITECTURE.md, etc.)
• CI Workflows (3 quality gates)
• Agent Config (3 agents)
• OMP Extensions (rules, hooks, tools)
• OMP Skills (4 skills)
• Code Quality
• ADR Process
• Git Ignore
Next Steps:
1. Review and customize AGENTS.md for your project
2. Fill in architecture details in ARCHITECTURE.md
3. Run your first build command to verify setup
If setting up in a fresh repo with no files:
git initIf generated file would overwrite existing file:
If language detection fails:
If user interrupts or selects "skip" for many features:
After running this skill, output a summary:
## Setup Summary
| Item | Status |
|------|--------|
| Project Name | `<name>` |
| Language | `<language>` |
| Template Version | `<version>` |
| Features Installed | `<count>` |
| Audit Status | Pass/Fail |
### Installed Features
- Feature 1
- Feature 2
### Skipped Features
- Feature A (user declined)
- Feature B (conflicted with existing)
### Next Actions
1. Action item
2. Action item