Commit f4e03ee
新增「业务素材同目录与最小授权」硬约束,并使各类材料对齐
约束:生成单个产物所需的全部用户业务素材(task.md、materials.md、引用的
图片/附件)必须集中在该产物同一子目录、用本地相对路径(./)引用,不得跨目录
或向上级(../)拉取;运行时只需对该单一目录授读权(最小授权)。共享/原始语料
(raw-materials)仅供人工提炼参考,不进生成命令。明确边界:不约束 skill 读自身
规则主源(prompts/、字体/版式 profile)与维护者构建操作。
落地:
- AGENTS.md 增「业务素材同目录与最小授权」小节;prompts/core/workflow.md
在路径约定主源处补该约束(并重建在线/离线产物,--check 通过)。
- 代码强制:generate_docx.py 拒绝成稿 .md 之外(../ 或绝对路径)的图片引用,
新增 2 个测试(共 62 通过)。
- 修正违反点:README 完整离线样例命令去掉跨目录的 raw-materials --material-file,
只喂文种目录自己的 materials.md;样例/offline/README、raw-materials/README、
4 个 materials.md 改为「raw-materials 仅供人工提炼参考、不参与生成」。
- 对齐:两个采集类 skill 补「采集底稿/成稿/图片同目录、运行时只读写该目录」;
draft-request 模板补「素材与请求同目录、./ 引用」。
- 经审视驳回:不把构建类 skill 读主源算作违反(类别错误);不把约束重复进
22 个 spec(只在 workflow.md 统一写一次,守单一信息源)。
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent aca6b27 commit f4e03ee
60 files changed
Lines changed: 97 additions & 12 deletions
File tree
- assets/templates
- dist
- offline/default
- doc-types
- announcement-公告
- approval-批复
- briefing-简报
- circular-通报
- communique-公报
- decision-决定
- letter-函
- minutes-纪要
- motion-议案
- notice-通知
- opinion-意见
- order-命令(令)
- presentation-汇报材料
- public-notice-通告
- reply-回复函
- report-报告
- request-请示
- resolution-决议
- special-report-情况专报
- speech-讲话稿
- summary-工作总结
- work-plan-工作方案
- skill/references
- prompts/core
- skills
- ministry-news-daily
- policy-keyword-tracker
- src/scripts
- tests
- 样例/offline
- minutes-纪要
- notice-通知
- raw-materials
- report-报告
- request-请示
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
31 | 39 | | |
32 | 40 | | |
33 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
340 | | - | |
341 | | - | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
347 | | - | |
348 | 347 | | |
349 | 348 | | |
350 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
0 commit comments