aico-backend-init
Initialize backend environment by creating constraints document from template. Use this skill when: - Running /backend.init command - User asks to "initialize backend", "setup backend environment" - Starting backend work and need to establish tech stack and conventions - Need to create docs/reference/backend/constraints.md
安装与使用
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
查看来源 ↗使用指南技能说明
Backend Init
Initialize backend development environment by creating the constraints file.
Language Configuration
Before generating any content, check aico.json in project root for language field to determine the output language. If not set, default to English.
Process
-
Check existing: Look for
docs/reference/backend/constraints.md - If exists: Ask user if they want to overwrite or skip
-
Create directory structure:
docs/reference/backend/ ├── constraints.md └── tasks/ -
Generate constraints file:
- Read template from
references/constraints.template.md - Guide user through key decisions
- Read template from
-
Save output: Write to
docs/reference/backend/constraints.md
Document Header Format
All generated documents MUST use this unified header format:
# [Document Title]
> Project: [project-name]
> Created: YYYY-MM-DD
> Last Updated: YYYY-MM-DD
Guided Questions
| Category | Questions |
|---|---|
| Language/Runtime | Node.js, Python, Go, Rust? |
| Framework | Express, Fastify, FastAPI, Gin? |
| Database | PostgreSQL, MySQL, MongoDB? |
| ORM/Query | Prisma, Drizzle, SQLAlchemy, GORM? |
| Testing | Vitest, Jest, Pytest, Go test? |
| API Style | REST, GraphQL, gRPC? |
Template
See references/constraints.template.md for the full constraints template.
Update Instructions File
After creating constraint files, update the project's AI instructions file to reference them:
-
Check for existing instructions file:
- Look for
CLAUDE.md(Claude Code) orAGENTS.md(Codex) in project root - If neither exists, create
CLAUDE.md
- Look for
-
Add reference section at the end of the file:
## Reference Documents The following constraint documents should be read before starting work: - `docs/reference/backend/constraints.md` - Tech stack and coding conventions -
If file already has Reference Documents section: Append the new reference if not already present
Output
✓ Created docs/reference/backend/constraints.md
✓ Created docs/reference/backend/tasks/
✓ Updated CLAUDE.md with reference to constraint files
✓ Backend environment initialized
Key Rules
- ALWAYS use the unified header format
- MUST guide user through tech stack questions
- ALWAYS create tasks/ directory
- ALWAYS save to
docs/reference/backend/constraints.md - MUST update CLAUDE.md or AGENTS.md with reference to constraint files
使用示例
查看来源仓库中的使用示例与配置说明。
查看来源 ↗来源历史
- 收录时间
- 2026-01-20
- 索引更新时间
- 2026-01-26
- Branch
- main
收录与同步日期属于本站记录。源码修改历史请查看来源仓库。
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!