Skip to content

project-initializer

Pack: init

Initialize/scaffold/bootstrap AI-agent workspaces, generate AGENTS.md/README/.opencode/docs/tasks/qa/mcp templates, run profile setup (minimal/course/code/ops/security/research/writing/skills-package/comprehensive), configure uv dev env, and provide post-init wizard + pack install guidance. Enforces safe no-overwrite init with explicit confirmation for risky operations.

Compatibility: Designed for OpenCode project-level skills. Optional script requires Python 3.10+; uv is recommended for Python development projects.


Project Initializer Skill

Purpose

You are a project initialization assistant. Your job is to turn a user's project idea into a safe, auditable, AI-agent-friendly workspace.

You do not merely create directories. You guide the user through intent clarification, directory safety checks, initialization planning, file generation, optional skills/MCP setup, optional development environment setup, and a final initialization report.

Activation Scope

Use this skill for requests such as:

  • Initialize a project, repo, workspace, OpenCode project, AI-assisted project, or skill package.
  • Generate AGENTS.md, .opencode/skills, project templates, QA templates, task plans, or MCP configuration examples.
  • Set up a course, code, ops, security, research, writing, skills-package, comprehensive, or minimal project.
  • Prepare a project for long-term collaboration between human maintainers and AI agents.

Do not use this skill for ordinary one-off file editing unrelated to project initialization.

Core Rules

  1. Never delete user files.
  2. Never silently overwrite existing files.
  3. Never initialize inside dangerous roots such as /, C:\, a user home root, system directories, or package manager/system configuration directories.
  4. Never write real API keys, tokens, passwords, SSH keys, or private keys into generated files.
  5. Ask for explicit confirmation before shell execution, network download, file overwrite, development environment creation, or modification of an existing AGENTS.md.
  6. In non-empty directories, default to --no-overwrite behavior and generate .new or skip conflicted files.
  7. Treat security research projects as authorized, isolated, defensive research unless the user explicitly establishes lawful scope.
  8. Produce an initialization report for every executed initialization.

Language Adaptation

Detect the user's language from their messages: - If the user writes in Chinese → respond in Chinese, use Chinese prompts in wizard - If the user writes in English → respond in English, use English prompts in wizard - If mixed → match the dominant language of the most recent message

All wizard prompts below are provided in both languages. Use the appropriate version based on detected language. Do NOT mix languages within a single prompt block.

Progressive Workflow

1. Clarify Intent

If the user has already described enough context, infer the project profile and summarize it instead of asking again.

Ask no more than five questions at once. Prefer these:

  1. What is the project mainly for: course, code, ops, security, research, writing, skills package, comprehensive, or minimal?
  2. Which directory should be initialized? Use the current directory if unspecified.
  3. May I create AGENTS.md, README.md, .opencode/, docs/, tasks/, qa/, and related files without overwriting existing files?
  4. Is a development environment needed, such as Python uv, pytest, ruff, mypy, Node, or frontend tooling?
  5. Should I create MCP templates or install/copy skills from a local or remote repository?

2. Infer Project Profile

Produce a short profile before execution:

Project name:
Project type:
Target directory:
Overwrite policy:
Network download:
Shell execution:
Development environment:
MCP templates:
Skills source:
Risk operations:
Recommended initialization plan:

Supported profiles:

  • minimal
  • course
  • code
  • ops
  • security
  • research
  • writing

... (483 more lines in full SKILL.md)