@elvis1513/auto-coding-skill 2.1.4 → 2.2.1
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.
- package/README.md +163 -554
- package/cli/assets/agents/browser-debugger.toml +0 -1
- package/cli/assets/agents/docs-researcher.toml +0 -1
- package/cli/assets/agents/explorer.toml +1 -2
- package/cli/assets/agents/fixer.toml +2 -3
- package/cli/assets/agents/reviewer.toml +1 -2
- package/cli/assets/skill/SKILL.md +98 -207
- package/cli/assets/skill/data/templates/ENGINEERING.md +113 -468
- package/cli/assets/skill/data/templates/docs/tasks/closure-log.md +11 -22
- package/cli/assets/skill/data/templates/docs/tasks/taskbook.md +16 -39
- package/cli/assets/skill/data/templates/tools/ap.py +16 -0
- package/cli/assets/skill/scripts/ap.py +703 -138
- package/cli/assets/skill/scripts/scaffold_templates.py +136 -0
- package/cli/src/index.js +317 -42
- package/cli/tests/ap_profiles_test.py +428 -0
- package/cli/tests/index.test.js +376 -87
- package/package.json +3 -3
- package/cli/assets/skill/data/templates/docs/architecture/adr/_TEMPLATE-ADR.md +0 -38
- package/cli/assets/skill/data/templates/docs/architecture/structure-standard.md +0 -92
- package/cli/assets/skill/data/templates/docs/bugs/bug-list.md +0 -5
- package/cli/assets/skill/data/templates/docs/deployment/deploy-records/_TEMPLATE-DEPLOY-RECORD.md +0 -19
- package/cli/assets/skill/data/templates/docs/deployment/deploy-runbook.md +0 -11
- package/cli/assets/skill/data/templates/docs/design/_TEMPLATE-DD.md +0 -49
- package/cli/assets/skill/data/templates/docs/interfaces/api-change-log.md +0 -11
- package/cli/assets/skill/data/templates/docs/interfaces/api.md +0 -36
- package/cli/assets/skill/data/templates/docs/reviews/_TEMPLATE-REVIEW.md +0 -36
- package/cli/assets/skill/data/templates/docs/reviews/optimization-backlog.md +0 -25
- package/cli/assets/skill/data/templates/docs/reviews/project-health-baseline.md +0 -66
- package/cli/assets/skill/data/templates/docs/tasks/summaries/_TEMPLATE-TASK-SUMMARY.md +0 -35
- 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
|
-
|
|
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
|
-
|
|
5
|
-
|
|
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
|
-
-
|
|
36
|
-
-
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
-
|
|
40
|
-
-
|
|
41
|
-
-
|
|
42
|
-
-
|
|
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:]])
|