qiusuo0226/chrono-pm-skill / governance-shared/baselines/3.15.0/ChronoPM-Project
chrono-pm-project
VerifiedMarkdown 驱动的单项目 AI 项目管理技能。覆盖需求、待办、进度、风险问题、里程碑、成本、日报周报、会议纪要、决策、复盘、初始化向导、计划、完整性巡检、历史计划导入、词库、PM 偏好。录入只发生在本项目 ai 目录。跨项目归集/检索请使用伴生技能 ChronoPM-Portfolio(只读)。触发:项目管理、日报、周报、风险登记册、需求追踪、里程碑、ChronoPM、记录/整理记录/补全/回填/更新/归档/入库/评审/验收、会议纪要、合同登记、初始化项目、倒排、待办、完整性巡检、词库、偏好。支持主动变更+人工确认:写入即标记待确认并登记 pm-decisions,确认后生效。需求只绑工作包,计划只绑工作包。
scripts/verify_contract_ri.py
View on GitHub#!/usr/bin/env python3
"""只读:D-CONTRACT-01/02。退出 0/1/2。"""
import argparse
import re
import sys
from pathlib import Path
def _ai(root: Path) -> Path:
ai = root / "ai"
return ai if ai.exists() else root
def main():
p = argparse.ArgumentParser()
p.add_argument("--root", required=True)
args = p.parse_args()
ai = _ai(Path(args.root))
diffs = []
creg = ai / "requirements" / "contract-register.md"
cons = {}
if creg.exists():
for line in creg.read_text(encoding="utf-8").splitlines():
if line.startswith("|") and "CON-" in line:
cells = [c.strip() for c in line.strip("|").split("|")]
if cells and cells[0].startswith("CON-"):
cons[cells[0]] = cells
cited = set()
rreg = ai / "requirements" / "requirement-register.md"
blob = ""
if rreg.exists():
blob += rreg.read_text(encoding="utf-8")
can = ai / "requirements" / "canonical"
if can.exists():
for f in can.rglob("*.md"):
blob += "\n" + f.read_text(encoding="utf-8")
for m in re.finditer(r"CON-[A-Za-z0-9\-]+", blob):
cited.add(m.group(0))
for cid in cited:
if cid not in cons:
diffs.append(f"D-CONTRACT-01 引用 {cid} 不在合同登记册")
for cid, cells in cons.items():
ptr = ""
for c in cells:
if "sources/" in c:
ptr = c
break
if ptr and ptr not in ("-", "—"):
# pointer like requirements/sources/CON-xxx/
rel = ptr.split("sources/")[-1].strip("/").split()[0]
meta = ai / "requirements" / "sources" / rel / "meta.md"
if not meta.exists():
diffs.append(f"D-CONTRACT-02 {cid} 拆解指针无 meta.md")
for d in diffs:
print("DIFF", d)
if diffs:
return 1
print("OK")
return 0
if __name__ == "__main__":
sys.exit(main())
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |