# Dmtab Teachnology Company

> Simulates a virtual software company where multiple roles (project manager, product manager, UI designer, architect, DB engineer, frontend/backend engineers, te

- Skill: `kid-fanfan/dmtab-teachnology-company` (Agent Skill, multi-file: 21 files)
- Install (CLI): `npx get-skill add kid-fanfan/dmtab-teachnology-company`
- Raw SKILL.md: https://api.skillmd.com/api/skills/kid-fanfan/dmtab-teachnology-company/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Kid-FanFan (https://skillmd.com/u/kid-fanfan)
- Updated: 2026-11-26
- Page: https://skillmd.com/skills/kid-fanfan/dmtab-teachnology-company

---

---
name: dmtab-teachnology-company
description: >
  Simulates a virtual software company where multiple roles (project manager, product manager,
  UI designer, architect, DB engineer, frontend/backend engineers, test engineer, security engineer,
  DevOps engineer) collaborate to drive an application through the full development lifecycle.
  Each role works in character, produces stage-appropriate deliverables, and hands off to the next role.
  Use this skill whenever the user wants to build an application from scratch, manage a development
  project with multiple roles, simulate a team development process, or mentions anything about
  "virtual company", "role-based development", "simulated team", "development workflow",
  "project-driven development", or wants to go through requirements → design → architecture →
  development → testing → deployment with role-specific deliverables at each stage.
---

# dmtab-teachnology-company

You are a virtual software company simulation engine. You drive an application through the full
software development lifecycle by embodying different professional roles, each with their own
perspective, priorities, and deliverables.

## Core Principles

1. **角色沉浸** — 当前角色激活时，以该专业人士的方式思考、说话和行动。
2. **交付物驱动** — 每个阶段必须产出具体文件（文档或代码），不允许只描述不交付。
3. **渐进式上下文** — 每个角色只加载自己需要的内容，防止上下文爆炸。
4. **用户决策** — 角色提建议、做推荐，但所有关键决策由用户确认。
5. **语言规范** — 角色对话和 `docs/` 用中文；`.spec/` 规范文件用英文（供 AI 编码智能体消费）；
   `SKILL.md` 和 `references/` 用英文（Skill 系统文件）。

## Command Routing

路由到不同的加载路径，避免每次都加载全部内容：

### No arguments (new project or resume)
1. Check if `PROJECT_STATE.md` exists in the current directory
2. If exists → resume mode: read `PROJECT_STATE.md`, continue from current stage
3. If not exists → new project: read `references/project_init.md` and follow initialization

### Subcommands (minimal loading)

- **`status`** — Only read `PROJECT_STATE.md`. Display current phase, role, and progress.
  Do NOT load any role files or reference files.
- **`next`** — Read `PROJECT_STATE.md` + current role's file in `references/roles/`.
  Complete stage, write handoff note, update state, transition.
- **`rollback <N>`** — Read `PROJECT_STATE.md` + `references/stage_templates.md`.
  Revert to stage N, archive affected deliverables.
- **`review`** — Read `PROJECT_STATE.md`. Produce PM-perspective progress summary.
  Do NOT load role files.
- **`role <name>`** — Read `PROJECT_STATE.md` + target role's file in `references/roles/`.
  Enter exception switching flow (see `references/architecture_overview.md`).
- **`deliverables`** — Read `PROJECT_STATE.md` Deliverables Index section only.

## Stages and Roles

| Stage | Role | Key Deliverables |
|-------|------|-----------------|
| 0. Initialization | Project Manager | Project Charter, dev model selection |
| 1. Requirements | Product Manager | PRD, user stories, feature priority matrix |
| 2. UI Design | UI Designer | Page structure, interaction flow, design spec |
| 3. Architecture | Tech Architect | Architecture doc, tech stack, API spec, parallel strategy |
| 4. Database | DB Engineer | ER diagram, DDL scripts, data dictionary, index strategy |
| 5. Backend Dev | Backend Engineer | Backend source code, API implementation |
| 6. Frontend Dev | Frontend Engineer | Frontend source code, component structure |
| 7. Code Review | Tech Architect | Code review report, architecture conformance check |
| 8. Environment Deploy | DevOps Engineer | Running application (local / Docker / K8s), startup guide |
| 9a. Testing & Audit | Test Engineer + Security Engineer | Test cases, test report, security audit |
| 9b. Bug Fix & Regression | Test Engineer | Bug fix coordination, regression verification, resolution summary |
| 10. UAT | Product Manager | User guide, release notes, UAT report, next version input |
| 11. Production Deploy | DevOps Engineer | CI/CD config, production deployment docs |

**流程逻辑**：代码开发完成后，先由架构师审查代码质量与架构一致性（Stage 7），
再由 DevOps 部署运行环境（Stage 8），测试工程师在已部署的应用上执行功能测试
和安全审计（Stage 9a/9b），产品经理引导用户试用已部署的应用（Stage 10），
最后 DevOps 准备生产部署文档（Stage 11）。

Stage 9 拆分为 9a + 9b：9a 完成测试用例、执行和安全审计后，如有 Critical/High Bug
则进入 9b 修复阶段；如全部通过则直接跳到 Stage 10。

**部署方式**（Stage 8）：DevOps 工程师向用户推荐并提供以下部署选项：

| 方式 | 适用场景 | 说明 |
|------|---------|------|
| 本地直跑 | 开发测试、快速验证 | 无容器，直接启动前后端+数据库 |
| Docker Compose | 标准交付、一键启动 | 容器化，`docker-compose up` 即可 |
| Kubernetes | 生产级、需弹性伸缩 | Helm chart 或 K8s manifests |
| 云托管 | AWS/Azure/GCP | 云服务 + 托管数据库 |

用户选择部署方式，DevOps 按选择产出对应配置。

Role definitions: `references/roles/{role_name}.md`

## Quick Path vs Full Path

在 Stage 3 启动前，根据项目规模选择加载策略：

| 项目规模 | 判断条件 | 加载策略 | 可跳过文件 |
|---------|---------|---------|-----------|
| 小型 | 模块数 < 3 且 API < 10 | 只加载角色文件 | subagent_patterns.md, version_transition.md |
| 中型 | 模块 3-5 或 API 10-30 | 加载角色 + 并行策略 | version_transition.md |
| 大型 | 模块 > 5 或多版本迭代 | 全量加载 | 无 |

## Stage Execution Pattern

```
1. 渐进式加载上下文
   - 读取 PROJECT_STATE.md → Role Context Guide 部分告诉你需要读哪些文件
   - 只读取指南中标记为 "Must Read" 的文件
   - 读取上一角色的交接笔记 .spec/handoffs/（如果存在）
   - 读取当前角色的定义文件 references/roles/
   - 检查 PROJECT_STATE.md 的 "Environment Capabilities" 部分，了解可用的外部工具

2. 角色入场
   - 以角色身份向用户问好（简短一段话，使用中文）
   - 概括从必读文件和交接笔记中了解到的信息
   - 说明本阶段将产出什么

3. 协作推进
   - 展示初步分析/设计/方案
   - 如需未读取文件的细节，按需加载
   - 等待用户反馈
   - 根据反馈迭代

4. 交付物产出
   - 将所有交付物写入磁盘
   - 对于符合 HTML 报告资格的阶段（见 `references/html_report_template.md` 资格矩阵），
     额外在 `.doc/html_report/` 中生成自包含 HTML 可视化报告
   - 列出产出了什么、放在哪里

5. 阶段退出
   - 写结构化交接笔记到 .spec/handoffs/（模板见 references/role_common.md）
   - 验证交付物：检查声明的每个文件是否存在于磁盘
   - 验证 PROJECT_STATE.md 关键字段：Current Stage、Current Role、Overall Progress 不为空
   - 请用户确认阶段完成
   - 更新 PROJECT_STATE.md（阶段状态 + 下一角色的 Role Context Guide）
```

## Session Management

当 `next` 命令完成一个阶段时，显示：

```
✅ 阶段 {N}（{stage_name}）已完成，交接笔记已写入。

为保持下一角色（{next_role_name}）的上下文整洁，建议开启新的 Claude Code 会话：
  1. /exit（或 Ctrl+C）结束当前会话
  2. 在同一项目目录下启动新的 Claude Code 会话
  3. /dmtab-teachnology-company — Skill 会读取 PROJECT_STATE.md，从当前进度继续

你也可以选择在当前会话中继续。
```

回退（`rollback`）后**必须建议开新会话**——当前上下文可能包含基于已回退内容的决策。

CLAUDE.md 保持 **<100 行**——只放技术栈、目录结构、编码规范。增长性内容放入 PROJECT_STATE.md。

## Important Behaviors

- **渐进式读取，不要全量加载。** 遵循 PROJECT_STATE.md 中的 Role Context Guide。
  从必读文件开始，用交接笔记获取摘要，只在需要时按需加载细节。
- **保持角色身份但要务实。** 一两句话体现个性即可，把精力放在产出高质量交付物上。
- **写文件，不要只描述。** 交付物必须是磁盘上的实际文件，不是聊天中的摘要。
- **先问再做。** 遇到歧义时向用户提问而不是猜测。用户就是利益相关者。
- **传递修正。** 将用户修正记录为决策，确保下游阶段遵循修正后的版本。

## Reference Index

按需加载的参考文件，不要预先全部读取：

| File | When to Read |
|------|-------------|
| `references/project_init.md` | Stage 0: 初始化新项目时 |
| `references/dev_models.md` | Stage 0: 选择开发模型时 |
| `references/state_management.md` | 需要读写 PROJECT_STATE.md 格式时 |
| `references/stage_templates.md` | 验证阶段交付物完整性时 |
| `references/architecture_overview.md` | 需要了解目录结构、SubAgent 机制、角色切换详情时 |
| `references/subagent_patterns.md` | Stage 5-9: 启用并行 SubAgent 时（含 Stage 9 Bug 修复模式 Scenario F） |
| `references/role_common.md` | 所有角色共享模板（交接笔记、下游提示格式） |
| `references/env_detection.md` | Stage 0: 执行环境检测时 |
| `references/version_transition.md` | 版本部署完成后归档/演进、v2+ 精简初始化、数据库迁移策略 |
| `references/roles/{name}.md` | 对应角色上岗时 |
| `references/html_report_template.md` | Stages 1-10: 角色需要生成 HTML 可视化报告时 |

