Skip to content

qiusuo0226/chrono-pm-skill / governance-shared/baselines/3.18.0/ChronoPM-Project

chrono-pm-project

Verified

Markdown 驱动的单项目 AI 项目管理技能。覆盖需求、待办、进度、风险问题、里程碑、成本、日报周报、会议纪要、决策、复盘、初始化向导、计划、完整性巡检、历史计划导入、词库、PM 偏好。录入只发生在本项目 ai 目录。跨项目归集/检索请使用伴生技能 ChronoPM-Portfolio(只读)。触发:项目管理、日报、周报、风险登记册、需求追踪、里程碑、ChronoPM、记录/整理记录/补全/回填/更新/归档/入库/评审/验收、会议纪要、合同登记、初始化项目、倒排、待办、完整性巡检、词库、偏好、画图、责任链图。支持主动变更+人工确认:写入即标记待确认并登记 pm-decisions,确认后生效。需求只绑工作包,计划只绑工作包。

FileKindSize
CHANGELOG.mdmarkdown127.1 KB
SKILL.mdskill md14.1 KB
SKILL_BLUEPRINT.mdmarkdown52.6 KB
SKILL_MODULE_MAP.mdmarkdown6.4 KB
VERSIONother7 B
assets/templates/archive/resource-register-template.mdmarkdown3.9 KB
assets/templates/archive/transfer-log-template.mdmarkdown3.8 KB
assets/templates/change-log-archive-template.mdmarkdown1.2 KB
assets/templates/change-log-index-template.mdmarkdown1.2 KB
assets/templates/change-log-template.mdmarkdown1.8 KB
assets/templates/contract-register-template.mdmarkdown3.1 KB
assets/templates/daily-todo-binding-template.mdmarkdown6.2 KB
assets/templates/decision-log-template.mdmarkdown685 B
assets/templates/domain-glossary-template.mdmarkdown2.2 KB
assets/templates/import-log-template.mdmarkdown1.3 KB
assets/templates/index-formats.mdmarkdown4.9 KB
assets/templates/issue-register-template.mdmarkdown1.5 KB
assets/templates/legacy-sources-template.mdmarkdown1022 B
assets/templates/lessons-learned-template.mdmarkdown1.8 KB
assets/templates/meeting-template.mdmarkdown1.4 KB
assets/templates/ops-log-index-template.mdmarkdown534 B
assets/templates/ops-log-template.mdmarkdown1.5 KB
assets/templates/output-manifest-template.mdmarkdown1.0 KB
assets/templates/outputs-index-template.mdmarkdown1.2 KB
assets/templates/personal-daily-todo-template.mdmarkdown9.0 KB
assets/templates/plan-import-template.mdmarkdown1.7 KB
assets/templates/plan-template.mdmarkdown3.7 KB
assets/templates/pm-decisions-template.mdmarkdown5.3 KB
assets/templates/pm-profile-template.mdmarkdown8.0 KB
assets/templates/project-brief-template.mdmarkdown4.4 KB
assets/templates/project-context-template.mdmarkdown4.0 KB
assets/templates/project-lineage-template.mdmarkdown1.3 KB
assets/templates/project-notes-template.mdmarkdown1.1 KB
assets/templates/project-status-template.mdmarkdown2.3 KB
assets/templates/requirement-index-template.mdmarkdown813 B
assets/templates/requirement-register-template.mdmarkdown4.5 KB
assets/templates/risk-register-template.mdmarkdown1.8 KB
assets/templates/source-type-registry-template.mdmarkdown6.3 KB
assets/templates/weekly-report-template.mdmarkdown2.4 KB
assets/templates/workspace-health-template.mdmarkdown1.9 KB
assets/templates/wp-chart-template.mdmarkdown797 B
assets/templates/wp-index-template.mdmarkdown1.8 KB
assets/templates/wp-template.mdmarkdown9.2 KB
governance/contracts/skill-contract.mdmarkdown7.8 KB
governance/migrations/README.mdmarkdown141 B
governance/migrations/upgrade-to-3.10.0.mdmarkdown10.2 KB
governance/migrations/upgrade-to-3.11.0.mdmarkdown6.1 KB
governance/migrations/upgrade-to-3.12.0.mdmarkdown7.2 KB
governance/migrations/upgrade-to-3.13.0.mdmarkdown6.6 KB
governance/migrations/upgrade-to-3.14.0.mdmarkdown10.0 KB
governance/migrations/upgrade-to-3.15.0.mdmarkdown7.2 KB
governance/migrations/upgrade-to-3.16.0.mdmarkdown6.0 KB
governance/migrations/upgrade-to-3.17.0.mdmarkdown5.7 KB
governance/migrations/upgrade-to-3.18.0.mdmarkdown5.3 KB
governance/migrations/upgrade-to-3.6.0.mdmarkdown2.3 KB
governance/migrations/upgrade-to-3.7.0.mdmarkdown3.1 KB
governance/migrations/upgrade-to-3.8.0.mdmarkdown19.4 KB
governance/migrations/upgrade-to-3.9.0.mdmarkdown11.1 KB
references/00-pm-main-rules.mdmarkdown77.7 KB
references/01-daily-report-rules.mdmarkdown33.9 KB
references/02-meeting-rules.mdmarkdown7.5 KB
references/04-risk-issue-rules.mdmarkdown15.0 KB
references/05-query-rules.mdmarkdown45.2 KB
references/06-file-rules.mdmarkdown29.4 KB
references/07-requirement-rules.mdmarkdown31.0 KB
references/08-change-control-rules.mdmarkdown10.2 KB
references/09-portfolio-rules.mdmarkdown391 B
references/10-update-trigger-rules.mdmarkdown22.4 KB
references/11-output-artifact-rules.mdmarkdown13.2 KB
references/12-excel-generation-rules.mdmarkdown15.4 KB
references/13-continuity-rules.mdmarkdown12.2 KB
references/14-self-check-rules.mdmarkdown26.9 KB
references/15-snapshot-rules.mdmarkdown3.9 KB
references/16-skill-governance-rules.mdmarkdown15.3 KB
references/17-domain-glossary-rules.mdmarkdown18.7 KB
references/18-init-wizard-rules.mdmarkdown13.8 KB
references/19-info-completeness-rules.mdmarkdown17.2 KB
references/20-workspace-version-rules.mdmarkdown15.3 KB
references/21-pm-profile-rules.mdmarkdown24.5 KB
references/22-carried-over-rules.mdmarkdown19.7 KB
references/23-procedure-index.mdmarkdown5.2 KB
reply-norm-skill/CAPABILITY.mdmarkdown807 B
reply-norm-skill/references/capability-boundary.mdmarkdown880 B
reply-norm-skill/references/reply-rules.mdmarkdown2.3 KB
scripts/_version.pyscript2.2 KB
scripts/carryover_step0.pyscript12.1 KB
scripts/chronopm_init/__init__.pyscript247 B
scripts/chronopm_init/config.pyscript9.5 KB
scripts/chronopm_init/file_registry.pyscript20.4 KB
scripts/chronopm_init/template_renderer.pyscript2.7 KB
scripts/chronopm_init/validators.pyscript1.2 KB
scripts/chronopm_init/workspace_builder.pyscript5.1 KB
scripts/init_workspace.pyscript2.0 KB
scripts/migrate_workspace.pyscript96.2 KB
scripts/sync_version.pyscript4.6 KB
scripts/verify_contract_ri.pyscript1.9 KB
scripts/verify_projection.pyscript11.1 KB
scripts/verify_requirement_wp.pyscript3.3 KB
scripts/verify_todo_continuity.pyscript3.4 KB
skill-gap-skill/CAPABILITY.mdmarkdown834 B
skill-gap-skill/assets/templates/skill-gap-demand-template.mdmarkdown2.5 KB
skill-gap-skill/references/capability-boundary.mdmarkdown1.0 KB
skill-gap-skill/references/gap-capture-rules.mdmarkdown4.7 KB
skill.jsonconfig38.7 KB
source-split-skill/CAPABILITY.mdmarkdown884 B
source-split-skill/assets/templates/source-atoms-index-template.mdmarkdown412 B
source-split-skill/assets/templates/source-doc-meta-template.mdmarkdown2.6 KB
source-split-skill/assets/templates/source-index-template.mdmarkdown739 B
source-split-skill/assets/templates/source-parse-log-template.mdmarkdown582 B
source-split-skill/references/capability-boundary.mdmarkdown1.3 KB
source-split-skill/references/split-rules.mdmarkdown3.5 KB
tests/regression-suite.mdmarkdown93.8 KB

scripts/chronopm_init/template_renderer.py

View on GitHub
#!/usr/bin/env python3
"""ChronoPM 模板渲染与基础文件辅助函数。

职责:模板目录定位、文件复制、目录创建、事实源与索引文件生成、
continuity 阶段衔接文件生成。函数体在 CR-20260810-001 中由
scripts/init_workspace.py 原样迁移,保证行为零变化。
"""

import shutil
from pathlib import Path

from .config import ALL_TEMPLATE_FILES  # noqa: F401  (供外部按需引用)


def get_templates_dir():
    """获取 Skill 包中的模板目录"""
    skill_root = Path(__file__).parent.parent.parent
    return skill_root / "assets" / "templates"


def copy_template(src_dir: Path, target_path: Path, template_name: str):
    """从模板目录复制文件到目标路径"""
    src = src_dir / template_name
    if src.exists() and not target_path.exists():
        target_path.parent.mkdir(parents=True, exist_ok=True)
        shutil.copy2(src, target_path)
        return True
    return False


def create_dirs(base_dir: Path, dirs: list):
    """创建目录结构"""
    for dir_path in dirs:
        full_path = base_dir / dir_path
        full_path.mkdir(parents=True, exist_ok=True)


def create_fact_sources(base_dir: Path, fact_files: dict, templates_dir: Path):
    """创建事实源文件"""
    for target_path, template_name in fact_files.items():
        dst = base_dir / target_path
        copy_template(templates_dir, dst, template_name)


def create_indexes(base_dir: Path, index_templates: dict, name: str):
    """创建索引文件"""
    for index_path, content_template in index_templates.items():
        dst = base_dir / index_path
        dst.parent.mkdir(parents=True, exist_ok=True)
        content = content_template.format(name=name)
        dst.write_text(content, encoding="utf-8")


def create_continuity_files(ai_dir: Path, project_name: str):
    """在 ai/context/ 下创建阶段衔接文件(v2.1.0:原 continuity/ 并入 context/,D-9)"""
    continuity_dir = ai_dir / "context"
    continuity_dir.mkdir(parents=True, exist_ok=True)

    templates_dir = get_templates_dir()

    # 创建阶段谱系
    lineage_path = continuity_dir / "project-lineage.md"
    if not lineage_path.exists():
        copy_template(templates_dir, lineage_path, "project-lineage-template.md")

    # 创建历史来源登记
    legacy_path = continuity_dir / "legacy-sources.md"
    if not legacy_path.exists():
        copy_template(templates_dir, legacy_path, "legacy-sources-template.md")

    # 结转登记册已删除(v2.0.0:结转/延期字段化到待办表)

    # 创建导入日志
    import_log_path = continuity_dir / "import-log.md"
    if not import_log_path.exists():
        copy_template(templates_dir, import_log_path, "import-log-template.md")
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall