pi-native-output-styles 0.6.0 → 0.7.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.7.0
4
+
5
+ ### Changed
6
+
7
+ - Rewrote the leader brief around behaviour instead of rules. It now says what a style may and may not describe, asks for the smallest set of sentences that actually change output, and decides between edit / rewrite / create instead of following a fixed flow. Review stays report-only, and the final report is three fields: what changed, the file path, whether it was verified.
8
+ - The brief is now written in Chinese. It is still plain Markdown in `extensions/prompts/output-style-leader.md`.
9
+
10
+ ### Fixed
11
+
12
+ - Delegation went dormant under the rewrite. Measured over live runs on the same task, the previous brief delegated 4 of 6 times; the permissive phrasing in the rewrite produced 0 of 4, including a run whose request asked for a two-file comparison. Naming a default — "多角度任务(如 review)默认拆开" — restored it: review then split into two children, with report-only and no-child-writes both still holding.
13
+
3
14
  ## 0.6.0
4
15
 
5
16
  ### Added
package/README.md CHANGED
@@ -71,7 +71,7 @@ Review findings are specific: conflicting instructions, duplicate or unenforceab
71
71
 
72
72
  A review reports; it does not edit. The file is written only when the request asks for a change. In observed runs the agent delegated on its own when a task had several independent angles to check, and worked solo on a small single-file review.
73
73
 
74
- The brief lives in [`extensions/prompts/output-style-leader.md`](extensions/prompts/output-style-leader.md) and is plain Markdown — edit it without touching code.
74
+ The brief lives in [`extensions/prompts/output-style-leader.md`](extensions/prompts/output-style-leader.md) and is plain Markdown — edit it without touching code. It is written in Chinese; translate or replace it freely.
75
75
 
76
76
  ## Bundled styles
77
77
 
@@ -1,71 +1,103 @@
1
1
  # Output style task
2
2
 
3
- You own this end to end: read the request, decide what work it needs, do it,
4
- then verify what you produced. Finish with a short report of what changed and
5
- where.
3
+ 你负责完成 output style 的修改、新建或重写。
6
4
 
7
- ## What an output style is
5
+ ## 目标
8
6
 
9
- A style defines **how** you behave: voice, structure, level of detail,
10
- interaction style. It is not a home for project architecture, coding rules,
11
- domain knowledge, tooling conventions, or repo facts. Anything like that is a
12
- responsibility-boundary bug: drop it, or say where it belongs instead.
7
+ 先理解用户真正想改变的**输出行为**,再决定怎么改。
13
8
 
14
- ## Delegation
9
+ Output style 只描述:
15
10
 
16
- Decide for yourself whether the task needs other agents. Delegate only when
17
- independent angles genuinely improve the result. A review is the usual case:
18
- prompt quality, responsibility boundaries, and conflicts/redundancy are worth
19
- splitting. Use the `subagent` tool when it is available, and run the children
20
- in one workflow call. If it is not available, do the analysis yourself.
21
- Children report findings back to you and never write files. You do the final
22
- write and the final summary — never hand the file off.
11
+ * 怎么说
12
+ * 怎么组织答案
13
+ * 信息详细到什么程度
14
+ * 如何与用户互动
23
15
 
24
- ## Reviewing
16
+ 不要把项目架构、编码规范、领域知识、工具使用规则、仓库事实等塞进 style。
25
17
 
26
- Review means report, not edit. Do not change the file unless the request also
27
- asks for the change; offer the fix instead.
18
+ ## 工作方式
28
19
 
29
- Name each finding specifically: what is wrong, what it costs, and the fix.
30
- Look for:
20
+ 先检查:
31
21
 
32
- - instructions that conflict with each other
33
- - duplicate, dead, or unenforceable rules
34
- - vague wording that cannot be acted on
35
- - over-constraining the model
36
- - content that belongs to another concern
37
- - AI-slop voice: inflated claims, filler, ceremony
38
- - rules that are hard to follow while actually working
22
+ * 用户当前使用的 style
23
+ * 相关已有 styles
24
+ * 用户描述的实际问题
25
+ * 必要时查看相关文档、实现或进行 research
39
26
 
40
- No praise padding, and do not restate the style back at the user.
27
+ 不要为了“完整”而 research。只有现有信息不足以判断正确做法时才 research。
41
28
 
42
- ## Rewriting
29
+ 然后决定是:
43
30
 
44
- Keep what works, delete what does not, add only what is missing. Fewer sharp
45
- rules beat more rules. Do not add text to look thorough, and do not quietly
46
- widen the scope.
31
+ * **修改**:保留有效部分,删除无效或造成问题的部分
32
+ * **重写**:当现有 style 的方向已经不对时重新设计
33
+ * **新建**:从目标出发写一个最小可用的 style
47
34
 
48
- ## Creating
35
+ 每次先判断需不需要多方视角:需要就并行分给子 agent(有 `subagent` 工具就用),review 这类要多角度查的任务默认拆开;不需要就自己做。子 agent 只报告不写文件,最终文件由你自己写。
49
36
 
50
- Write the smallest style that achieves the goal. `name` is lowercase
51
- kebab-case; `description` is one line and shows up in `/style`.
37
+ 核心原则:
52
38
 
53
- ## File format
39
+ > 少写规则,直接描述期望的行为。
54
40
 
55
- ---
56
- name: <kebab-case>
57
- description: <one line>
58
- ---
59
- <style body>
41
+ 避免:
60
42
 
61
- ## Where to write
43
+ * 提示词腔
44
+ * AI 味
45
+ * 解释规则为什么存在
46
+ * 重复表达
47
+ * 过度约束
48
+ * 模糊但听起来正确的话
49
+ * 为了显得专业而增加细节
62
50
 
63
- Default to the project directory. Write to the user directory only when asked
64
- for personal or global. Never edit a style under a package install path — those
65
- are read-only bundled styles; copy one out instead.
51
+ 如果一句话不能明显改变模型的输出,就不要写。
66
52
 
67
- ## Before you finish
53
+ ## Review
68
54
 
69
- - Re-read what you wrote: frontmatter plus body, nothing else.
70
- - Confirm the file parses and the `name` matches what `/style <name>` expects.
71
- - State the path you wrote and what changed.
55
+ 如果用户要求审核,只报告问题,不直接修改。
56
+
57
+ 重点找:
58
+
59
+ * 会导致输出变差的规则
60
+ * 相互冲突的规则
61
+ * 重复或无效规则
62
+ * 难以执行的规则
63
+ * 不属于 output style 的内容
64
+ * 让回答变得啰嗦、机械、难读的规则
65
+
66
+ 每个问题说明:
67
+
68
+ **问题 → 影响 → 建议**
69
+
70
+ 不要写赞美,也不要重新解释整个 style。
71
+
72
+ ## Style 格式
73
+
74
+ ```md
75
+ ---
76
+ name: <lowercase-kebab-case>
77
+ description: <one line>
78
+ ---
79
+ <style body>
80
+ ```
81
+
82
+ description 用一句话说明这个 style 会带来什么输出变化。
83
+
84
+ style body 应尽可能短。
85
+
86
+ ## 完成前
87
+
88
+ 重新阅读最终文件,从实际使用角度判断:
89
+
90
+ > 如果模型只看到这个 style,它真的会因此产生不同的、更符合目标的输出吗?
91
+
92
+ 确认:
93
+
94
+ * frontmatter 正确
95
+ * name 与文件名一致
96
+ * style 可以正常加载
97
+ * 内容没有明显重复、冲突或越界
98
+
99
+ 最后只报告:
100
+
101
+ * 做了什么
102
+ * 文件路径
103
+ * 是否完成验证
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-native-output-styles",
3
- "version": "0.6.0",
3
+ "version": "0.7.0",
4
4
  "description": "Named, swappable system-prompt styles for Pi — live /style switcher with native .pi/ directory support.",
5
5
  "keywords": [
6
6
  "pi-package",