@elvis1513/auto-coding-skill 2.1.3 → 2.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/README.md +154 -548
  2. package/cli/assets/agents/browser-debugger.toml +0 -1
  3. package/cli/assets/agents/docs-researcher.toml +0 -1
  4. package/cli/assets/agents/explorer.toml +1 -2
  5. package/cli/assets/agents/fixer.toml +2 -3
  6. package/cli/assets/agents/reviewer.toml +1 -2
  7. package/cli/assets/skill/SKILL.md +98 -207
  8. package/cli/assets/skill/data/templates/ENGINEERING.md +113 -468
  9. package/cli/assets/skill/data/templates/docs/tasks/closure-log.md +11 -22
  10. package/cli/assets/skill/data/templates/docs/tasks/taskbook.md +16 -39
  11. package/cli/assets/skill/data/templates/tools/ap.py +16 -0
  12. package/cli/assets/skill/scripts/ap.py +666 -129
  13. package/cli/assets/skill/scripts/scaffold_templates.py +136 -0
  14. package/cli/src/index.js +317 -42
  15. package/cli/tests/ap_profiles_test.py +428 -0
  16. package/cli/tests/index.test.js +373 -62
  17. package/package.json +3 -3
  18. package/cli/assets/skill/data/templates/docs/architecture/adr/_TEMPLATE-ADR.md +0 -38
  19. package/cli/assets/skill/data/templates/docs/architecture/structure-standard.md +0 -92
  20. package/cli/assets/skill/data/templates/docs/bugs/bug-list.md +0 -5
  21. package/cli/assets/skill/data/templates/docs/deployment/deploy-records/_TEMPLATE-DEPLOY-RECORD.md +0 -19
  22. package/cli/assets/skill/data/templates/docs/deployment/deploy-runbook.md +0 -11
  23. package/cli/assets/skill/data/templates/docs/design/_TEMPLATE-DD.md +0 -49
  24. package/cli/assets/skill/data/templates/docs/interfaces/api-change-log.md +0 -11
  25. package/cli/assets/skill/data/templates/docs/interfaces/api.md +0 -36
  26. package/cli/assets/skill/data/templates/docs/reviews/_TEMPLATE-REVIEW.md +0 -36
  27. package/cli/assets/skill/data/templates/docs/reviews/optimization-backlog.md +0 -25
  28. package/cli/assets/skill/data/templates/docs/reviews/project-health-baseline.md +0 -66
  29. package/cli/assets/skill/data/templates/docs/tasks/summaries/_TEMPLATE-TASK-SUMMARY.md +0 -35
  30. package/cli/assets/skill/data/templates/docs/testing/regression-matrix.md +0 -11
@@ -1,27 +1,16 @@
1
- # Closure Log(默认轻量闭环记录:每个任务至少一条)
1
+ # Closure Log
2
2
 
3
- 规则:
4
- 1) 每个任务完成后,至少追加一条闭环记录
5
- 2) `dev` 模式记录开发闭环:轻量门禁通过、已提交推送,CI/Jenkins/目标环境默认不等待验证
6
- 3) `verify` 模式记录完整闭环:真实提交、已启用的 CI/Jenkins 构建、已启用的目标环境验证结果
7
- 4) CI/Jenkins 失败后再修复的任务,应补充失败原因和修复提交
8
- 5) 这里是默认闭环文档;长 summary 只用于高风险或复盘任务
9
-
10
- ---
3
+ Record one evidence-backed closure per task. Use `DEV-CLOSED` for the development
4
+ loop and `PASS` only after all enabled verification surfaces actually succeed.
11
5
 
12
6
  ## <TASK_ID> — <Title> — YYYY-MM-DD HH:MM
13
- - Task: <TASK_ID>
14
- - Commit: <commit sha>
15
- - CI/Jenkins Build: <build url or skipped by verification.jenkins_required=false>
16
- - Target Env: <env name / health url / page path or skipped by verification.target_env_required=false>
17
- - Verification: <health / key api / key page / business path>
18
- - Structure Check: <passed / blocked / skipped with reason>
19
- - Evidence Log: `docs/tasks/evidence.jsonl`
20
- - Result: DEV-CLOSED / PASS / FAIL / PARTIAL
21
- - Follow-up: <none or todo>
22
- - CI/Jenkins Failure: <optional>
23
- - Fix Commit: <optional>
24
7
 
25
- ---
8
+ - Commit:
9
+ - Effective profile: micro | standard | high-risk
10
+ - Gate / structure check:
11
+ - CI/Jenkins / target environment:
12
+ - Verification:
13
+ - Result: DEV-CLOSED | PASS | FAIL | PARTIAL
14
+ - Follow-up:
26
15
 
27
- 继续在下方追加记录(不要删除历史记录)
16
+ ---
@@ -1,46 +1,23 @@
1
- # Taskbook(任务本:持续续写,默认权威任务来源)
1
+ # Taskbook
2
2
 
3
- 规则:
4
- 1) 所有任务都写在本文件(持续续写,不另起零散任务文件)
5
- 2) 普通小改动只要求最小设计记录;跨模块、接口、数据库、部署、CI/Jenkins、关键页面流程变更才补 DD
6
- 3) 每个任务最终必须有闭环证据:提交、已启用的 CI/Jenkins 状态、已启用的目标环境验证、结果、遗留问题
7
- 4) 长 summary 不是默认强制产物;只有高风险或需要完整复盘时再补
8
-
9
- ---
3
+ Keep active tasks here. Archive closed history when the configured ledger budget
4
+ is reached. Add DD/ADR or other optional documents only when classification says
5
+ they are useful.
10
6
 
11
7
  ## Task T0001 — <Title>
12
- - 状态:Planned | Designing | Implementing | Local Checking | Pipeline Verifying | Target Verifying | Done | Blocked
13
- - 范围(In scope):
14
- - 非目标(Out of scope):
15
- - 是否高风险(Yes/No):
16
- - 高风险分类(如有):DB / Auth / Payment / CI / Jenkins / Gateway / Upload / Prod Config
17
- - 影响面(API / DB / CI / Jenkins / Page / Config / Deploy):
18
- - 分类结果(`ap.py classify --scope auto`:risk / gate / needs):
19
- - 结构落位(Domain / Application / Infrastructure / Interface / Shared / Tooling / N/A):
20
- - 复用检查(已有 helper / 组件 / 脚本 / 库):
21
- - 是否需要 ADR(Yes/No):
22
- - 最小设计记录:
23
- - 验收标准:
24
- - 子任务(如有):
25
- - [ ] T0001-1 <subtask>
26
-
27
- ### 默认证据(完成后填写)
28
- - 项目配置:`docs/ENGINEERING.md`
29
- - 提交:<commit sha>
30
- - CI/Jenkins Build:<build url or skipped by verification.jenkins_required=false>
31
- - 目标环境验证:<health/api/page/business path or skipped by verification.target_env_required=false>
32
- - 闭环记录:`docs/tasks/closure-log.md`
33
8
 
34
- ### 按需补充证据(仅在需要时填写)
35
- - DD:`docs/design/T0001-<slug>.md`
36
- - Review:`docs/reviews/T0001-YYYYMMDD-HHMM.md`
37
- - API 文档:`docs/interfaces/api.md`
38
- - API Change Log:`docs/interfaces/api-change-log.md`
39
- - 回归矩阵:`docs/testing/regression-matrix.md`
40
- - Bug 清单:`docs/bugs/bug-list.md`
41
- - Task Summary:`docs/tasks/summaries/T0001.md`
42
- - Deployment Record:`docs/deployment/deploy-records/T0001-YYYYMMDD.md`
9
+ - Status: Planned | Designing | Implementing | Checking | Verifying | Done | Blocked
10
+ - Scope:
11
+ - Non-goals:
12
+ - Effective profile: micro | standard | high-risk
13
+ - Classification reasons:
14
+ - Existing owner / reuse points:
15
+ - Minimal design:
16
+ - Acceptance criteria:
17
+ - Verification evidence:
18
+ - Commit / CI / target environment:
19
+ - Follow-up:
43
20
 
44
21
  ---
45
22
 
46
- 继续在下方追加任务(不要删除历史记录)
23
+ Append new active tasks below.
@@ -0,0 +1,16 @@
1
+ #!/usr/bin/env python3
2
+ """Compatibility launcher for the project-local auto-coding runtime."""
3
+
4
+ import os
5
+ import sys
6
+ from pathlib import Path
7
+
8
+ repo = Path(__file__).resolve().parents[3]
9
+ scripts = [
10
+ repo / ".agents" / "skills" / "auto-coding-skill" / "scripts" / "ap.py",
11
+ Path.home() / ".agents" / "skills" / "auto-coding-skill" / "scripts" / "ap.py",
12
+ ]
13
+ script = next((candidate for candidate in scripts if candidate.exists()), None)
14
+ if script is None:
15
+ raise SystemExit("auto-coding runtime not found; run `autocoding init` first")
16
+ os.execv(sys.executable, [sys.executable, str(script), *sys.argv[1:]])