一键导入
project-setup
Set up a new coding project with proper structure, dependencies, and configuration
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Set up a new coding project with proper structure, dependencies, and configuration
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Discover team members, delegate tasks, and track progress to completion
Prepare structured meeting agendas and pre-reads from task board, artifacts, and team context
Classify, prioritize, and route incoming incidents based on severity, category, and affected components
Classify incoming requests and route to the appropriate specialist agent
How to communicate with other agents on the system. Use when you need to ask questions, share information, or coordinate.
Compare options against weighted criteria with scored matrix, sensitivity analysis, and quantified recommendation
| name | project-setup |
| description | Set up a new coding project with proper structure, dependencies, and configuration |
Use this skill when you need to create a new project from scratch or scaffold a new module within an existing workspace.
Read the task description to identify:
PROJECT_NAME="my-project"
PROJECT_DIR=~/workspace/$PROJECT_NAME
mkdir -p "$PROJECT_DIR"/{src,tests,config}
cd "$PROJECT_DIR"
For a Node.js project:
mkdir -p "$PROJECT_DIR"/{src,tests,config,scripts}
For a Python project:
mkdir -p "$PROJECT_DIR"/{src/$PROJECT_NAME,tests,config,scripts}
touch "$PROJECT_DIR/src/$PROJECT_NAME/__init__.py"
Node.js:
cd "$PROJECT_DIR"
cat > package.json <<'EOF'
{
"name": "PROJECT_NAME",
"version": "0.1.0",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "node src/index.js",
"test": "node --test tests/"
},
"keywords": [],
"license": "UNLICENSED"
}
EOF
sed -i "s/PROJECT_NAME/$PROJECT_NAME/" package.json
npm install
Python:
cd "$PROJECT_DIR"
cat > pyproject.toml <<EOF
[project]
name = "$PROJECT_NAME"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = []
[project.optional-dependencies]
dev = ["pytest"]
EOF
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
README.md:
cat > README.md <<EOF
# $PROJECT_NAME
## Overview
Brief description of what this project does.
## Setup
\`\`\`bash
# installation steps
\`\`\`
## Usage
\`\`\`bash
# usage example
\`\`\`
EOF
.gitignore:
cat > .gitignore <<'EOF'
node_modules/
.venv/
__pycache__/
*.pyc
.env
dist/
build/
*.egg-info/
.DS_Store
coverage/
*.log
EOF
Entry point (Node.js):
cat > src/index.js <<'EOF'
#!/usr/bin/env node
"use strict";
function main() {
console.log("Hello from PROJECT_NAME");
}
main();
EOF
chmod +x src/index.js
Entry point (Python):
cat > src/$PROJECT_NAME/main.py <<'EOF'
#!/usr/bin/env python3
"""Main entry point."""
def main():
print("Hello from PROJECT_NAME")
if __name__ == "__main__":
main()
EOF
chmod +x src/$PROJECT_NAME/main.py
cd "$PROJECT_DIR"
git init
git add -A
git commit -m "Initial project scaffold for $PROJECT_NAME"
cp -r "$PROJECT_DIR" /home/shared/
# Register as artifact so other agents can find it
bash /home/shared/scripts/artifact.sh register \
--name "$PROJECT_NAME" \
--type "project" \
--path "/home/shared/$PROJECT_NAME" \
--description "Project scaffold for $PROJECT_NAME"
cd "$PROJECT_DIR"
# Verify structure
tree -L 2 --dirsfirst
# Verify it runs
npm start 2>&1 || python3 -m $PROJECT_NAME 2>&1
# Verify tests pass (even if trivial)
npm test 2>&1 || python3 -m pytest tests/ 2>&1