Skip to content
Back to skills

Quantum Codegen

ASecurity

全栈代码生成。用户说生成页面 / 建模块 / 建表 / 写单测 / 安全测试 / E2E,或 biz-delivery-loop 编排到对应 stage 时触发。

  • 186 stars
  • 0 votes
  • 0 copies
  • 6 views
  • Added September 5, 2026
developmentfrontendbackendsecurity

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned September 5, 2026

npx -y skills add WenJunDuan/Rlues --skill quantum-codegen --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Quantum Codegen?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Quantum Codegen
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/wenjunduan-quantum-codegen-e1a3a482/badge)](https://www.skillsdirectory.com/skills/wenjunduan-quantum-codegen-e1a3a482)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: quantum-codegen
description: 全栈代码生成。用户说生成页面 / 建模块 / 建表 / 写单测 / 安全测试 / E2E,或 biz-delivery-loop 编排到对应 stage 时触发。
---

# quantum-codegen — 全栈代码快速生成

> 6 种生成模式合一 (7→2 合并; 前身 scaffold-page-gen / scaffold-module-gen / db-schema-gen / unit-test-gen / security-test / playwright-e2e).
> 热路径只做 mode 选择 + 共同契约; 各栈详细步骤/规范/适配器下沉 `references/`, 按 mode Read (渐进披露).

## 共同契约 (一次声明, 不再逐 mode 重复)

- **系统无关**: 生成逻辑不写死技术栈; 具体栈从 `references/*-convention-pack.md` + `quantum-*-adapter.md` 读取.
- **只读约定**: 先读对应 Convention Pack + runtime-env, 不臆造路径/命名.
- **证据**: 产物 + 校验脚本输出写进 PACE runtime-verify (delivery-gate 只认落盘证据, 不认对话).
- **自修复 loop**: 跑 `scripts/check_*.py` → 读失败 → 修 → 重跑到过.

## mode 选择表

| mode | 生成什么 | 详细步骤 | 规范 / 适配器 | 校验脚本 |
|---|---|---|---|---|
| **page** | 前端页面/组件 | `references/page-playbook.md` | frontend-convention-pack.md + quantum-front-adapter.md | scripts/check_frontend_pack.py |
| **module** | 后端模块脚手架 | `references/module-playbook.md` | (随 db/unit 栈) | scripts/check_backend_pack.py |
| **db** | DB 表结构 + DDL | `references/db-playbook.md` | backend-db-convention-pack.md + quantum-backend-db-adapter.md | scripts/check_backend_pack.py |
| **unit** | 后端单元测试 | `references/unit-playbook.md` | backend-test-convention-pack.md + quantum-backend-test-adapter.md | scripts/check_backend_pack.py |
| **security** | 安全测试 | `references/security-playbook.md` | security-test-contract.md + quantum-security-adapter.md | scripts/check_security_e2e_pack.py |
| **e2e** | 端到端测试 | `references/e2e-playbook.md` | e2e-convention-pack.md + quantum-e2e-adapter.md | scripts/check_security_e2e_pack.py |

## 用法

1. 定 mode (上表).
2. Read 该 mode 的 playbook + 规范/适配器.
3. 生成代码到适配器约定的路径.
4. 跑对应 `check_*.py`, 输出写 runtime-verify.
5. 失败 → 自修复 → 重跑.

## 边界 (不并入本 skill)

- 通用依赖检查 → `deps-check` skill.
- 浏览器驱动实跑 (e2e mode 借用) → `playwright` skill.
- 运行期数据/能力读取 (读, 非生成) → `quantum-data` skill.

Files in this skill

  • SKILL.md2.4 KB
  • references/backend-db-convention-pack.md1.9 KB
  • references/backend-test-convention-pack.md1.7 KB
  • references/db-playbook.md3.2 KB
  • references/e2e-convention-pack.md2.1 KB
  • references/e2e-playbook.md3.1 KB
  • references/frontend-convention-pack.md2.1 KB
  • references/module-playbook.md2.3 KB
  • references/page-playbook.md3.2 KB
  • references/quantum-backend-db-adapter.md1.4 KB
  • references/quantum-backend-test-adapter.md1.2 KB
  • references/quantum-e2e-adapter.md1.5 KB
  • references/quantum-front-adapter.md3 KB
  • references/quantum-security-adapter.md1.4 KB
  • references/security-playbook.md3.2 KB
  • references/security-test-contract.md2.3 KB
  • references/unit-playbook.md3.1 KB
  • scripts/check_backend_pack.py4.7 KB
  • scripts/check_frontend_pack.py3.2 KB
  • scripts/check_security_e2e_pack.py5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.