一键导入
setup-workspace
Initialize a freshly copied Cortex multi-project workspace template by setting up shared resources and workspace docs. Run once after copying.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Initialize a freshly copied Cortex multi-project workspace template by setting up shared resources and workspace docs. Run once after copying.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Safely upgrade this Cortex repo to the latest template: detects on-disk state, reconciles infrastructure, and applies idempotent migrations — preserving your customizations and never overwriting your edits without asking.
Safely upgrade this Cortex workspace to the latest template: detects on-disk state, reconciles infrastructure, and applies idempotent migrations — preserving your customizations and never overwriting your edits without asking.
Maintainer auto-check for the Cortex source repo. Invoke this PROACTIVELY and automatically WHENEVER files under templates/ have been added, edited, deleted, renamed, or restructured — and before committing template changes — to classify the change as ADDITIVE (handled by the runner's reconciliation) or MIGRATION-NEEDED (breaking/structural), and scaffold a migrations/NNN-*.md if one is required. Do not wait to be asked. For use INSIDE the template source repo only; it is never shipped to user projects.
Run a full project health check across context-engineering, the knowledge base, and docs to surface gaps, drift, and inconsistencies.
Validate implementation progress of a PRP against its original requirements, auditing completed, current, and remaining phases.
Validate a generated PRP structure against its source requirements to catch gaps and misalignments before execution begins.
基于 SOC 职业分类
| name | setup-workspace |
| description | Initialize a freshly copied Cortex multi-project workspace template by setting up shared resources and workspace docs. Run once after copying. |
| disable-model-invocation | true |
Initialize a freshly copied Cortex workspace template. Run this command after copying the template files to your workspace and placing your projects in active-projects/.
Usage: /setup-workspace
List all directories in active-projects/ and for each project:
Detect tech stack by checking for:
package.json → Node.js project (check for framework: Next.js, React, Vue, Angular, etc.)pubspec.yaml → Flutter/Dart projectrequirements.txt or pyproject.toml or setup.py → Python projectgo.mod → Go projectCargo.toml → Rust projectpom.xml or build.gradle → Java/Kotlin projectGemfile → Ruby project.csproj or .sln → .NET projectappsscript.json → Google Apps ScriptAnalyze project structure:
ls on the project root to understand folder organization.git/ directoryIdentify key dependencies from package manager files
List all directories in experiments/ and note their tech stacks (lightweight scan).
For each project found in active-projects/:
If the project does NOT already have an AGENTS.md:
shared/templates/AGENTS-template.md as the baseactive-projects/{project-name}/AGENTS.mdIf the project ALREADY has an AGENTS.md, do not overwrite it. Instead, note it in the report.
If the project does NOT already have a CLAUDE.md:
shared/templates/CLAUDE-template.md as the base — it is a thin importer that just contains @AGENTS.mdactive-projects/{project-name}/CLAUDE.md as-is. No population needed — all real content lives in AGENTS.md.If the project ALREADY has a CLAUDE.md, do not overwrite it.
Read the current root AGENTS.md (the navigation hub) and update the Project Navigation and Project Architecture Guides sections:
The root CLAUDE.md is a thin importer (@AGENTS.md) and needs no population.
If any project-specific patterns need to be added to .gitignore, add them.
For each project discovered in active-projects/:
knowledge-base/implementations/{project-name}/ directory_SUMMARY.md stub in eachExecute the logic from /populate-knowledge-base to:
INDEX.md and all _SUMMARY.md filesUpdate context-engineering/_STATUS.md with:
Present a summary report to the user:
=== Cortex Workspace Setup Complete ===
Projects Discovered:
- {project-name} ({tech-stack}) — {brief description}
- ...
Documentation Created:
- {project-name}/AGENTS.md — {created | already existed}
- {project-name}/CLAUDE.md (thin importer) — {created | already existed}
- ...
Knowledge Base:
- {N} initial topics created
- Implementation folders: {list}
Root Docs Updated:
- AGENTS.md — Project navigation table and architecture guides updated
Next Steps:
1. Review the generated project AGENTS.md files (CLAUDE.md is just a thin importer)
2. Customize each AGENTS.md with project-specific details
3. Start your first feature with /generate-requirements