@ia-ccun/code-agent-cli 0.0.47-test.1 → 0.0.49-beta.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.
Files changed (80) hide show
  1. package/config/agent/extensions/aicode-tips.ts +25 -6
  2. package/config/agent/extensions/error-monitor.ts +43 -4
  3. package/config/agent/extensions/msg-debug.ts +18 -8
  4. package/config/agent/skills/design-md/README.md +34 -0
  5. package/config/agent/skills/design-md/SKILL.md +172 -0
  6. package/config/agent/skills/design-md/examples/DESIGN.md +154 -0
  7. package/config/agent/skills/fireworks-tech-graph/LICENSE +21 -0
  8. package/config/agent/skills/fireworks-tech-graph/README.md +528 -0
  9. package/config/agent/skills/fireworks-tech-graph/README.zh.md +499 -0
  10. package/config/agent/skills/fireworks-tech-graph/SKILL.md +537 -0
  11. package/config/agent/skills/fireworks-tech-graph/agentloop-core.svg +101 -0
  12. package/config/agent/skills/fireworks-tech-graph/agents/openai.yaml +4 -0
  13. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style1-flat.png +0 -0
  14. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style2-dark.png +0 -0
  15. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style3-blueprint.png +0 -0
  16. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style4-notion.png +0 -0
  17. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style5-glass.png +0 -0
  18. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style6-claude.png +0 -0
  19. package/config/agent/skills/fireworks-tech-graph/assets/samples/sample-style7-openai.png +0 -0
  20. package/config/agent/skills/fireworks-tech-graph/fixtures/agent-memory-types-style4.json +181 -0
  21. package/config/agent/skills/fireworks-tech-graph/fixtures/api-flow-style7.json +40 -0
  22. package/config/agent/skills/fireworks-tech-graph/fixtures/mem0-style1.json +297 -0
  23. package/config/agent/skills/fireworks-tech-graph/fixtures/microservices-style3.json +64 -0
  24. package/config/agent/skills/fireworks-tech-graph/fixtures/multi-agent-style5.json +45 -0
  25. package/config/agent/skills/fireworks-tech-graph/fixtures/system-architecture-style6.json +48 -0
  26. package/config/agent/skills/fireworks-tech-graph/fixtures/tool-call-style2.json +182 -0
  27. package/config/agent/skills/fireworks-tech-graph/package.json +42 -0
  28. package/config/agent/skills/fireworks-tech-graph/references/icons.md +406 -0
  29. package/config/agent/skills/fireworks-tech-graph/references/style-1-flat-icon.md +108 -0
  30. package/config/agent/skills/fireworks-tech-graph/references/style-2-dark-terminal.md +107 -0
  31. package/config/agent/skills/fireworks-tech-graph/references/style-3-blueprint.md +113 -0
  32. package/config/agent/skills/fireworks-tech-graph/references/style-4-notion-clean.md +94 -0
  33. package/config/agent/skills/fireworks-tech-graph/references/style-5-glassmorphism.md +125 -0
  34. package/config/agent/skills/fireworks-tech-graph/references/style-6-claude-official.md +209 -0
  35. package/config/agent/skills/fireworks-tech-graph/references/style-7-openai.md +215 -0
  36. package/config/agent/skills/fireworks-tech-graph/references/style-diagram-matrix.md +135 -0
  37. package/config/agent/skills/fireworks-tech-graph/references/svg-layout-best-practices.md +100 -0
  38. package/config/agent/skills/fireworks-tech-graph/scripts/README.md +244 -0
  39. package/config/agent/skills/fireworks-tech-graph/scripts/generate-diagram.sh +157 -0
  40. package/config/agent/skills/fireworks-tech-graph/scripts/generate-from-template.py +1556 -0
  41. package/config/agent/skills/fireworks-tech-graph/scripts/test-all-styles.sh +135 -0
  42. package/config/agent/skills/fireworks-tech-graph/scripts/validate-svg.sh +292 -0
  43. package/config/agent/skills/fireworks-tech-graph/templates/agent-architecture.svg +28 -0
  44. package/config/agent/skills/fireworks-tech-graph/templates/architecture.svg +23 -0
  45. package/config/agent/skills/fireworks-tech-graph/templates/comparison-matrix.svg +14 -0
  46. package/config/agent/skills/fireworks-tech-graph/templates/data-flow.svg +28 -0
  47. package/config/agent/skills/fireworks-tech-graph/templates/er-diagram.svg +21 -0
  48. package/config/agent/skills/fireworks-tech-graph/templates/flowchart.svg +21 -0
  49. package/config/agent/skills/fireworks-tech-graph/templates/sequence.svg +20 -0
  50. package/config/agent/skills/fireworks-tech-graph/templates/state-machine.svg +20 -0
  51. package/config/agent/skills/fireworks-tech-graph/templates/timeline.svg +19 -0
  52. package/config/agent/skills/fireworks-tech-graph/templates/use-case.svg +21 -0
  53. package/config/agent/skills/impeccable/adapt/SKILL.md +205 -0
  54. package/config/agent/skills/impeccable/animate/SKILL.md +178 -0
  55. package/config/agent/skills/impeccable/arrange/SKILL.md +128 -0
  56. package/config/agent/skills/impeccable/audit/SKILL.md +129 -0
  57. package/config/agent/skills/impeccable/bolder/SKILL.md +120 -0
  58. package/config/agent/skills/impeccable/clarify/SKILL.md +186 -0
  59. package/config/agent/skills/impeccable/colorize/SKILL.md +146 -0
  60. package/config/agent/skills/impeccable/critique/SKILL.md +123 -0
  61. package/config/agent/skills/impeccable/delight/SKILL.md +307 -0
  62. package/config/agent/skills/impeccable/distill/SKILL.md +125 -0
  63. package/config/agent/skills/impeccable/extract/SKILL.md +95 -0
  64. package/config/agent/skills/impeccable/frontend-design/reference/color-and-contrast.md +132 -0
  65. package/config/agent/skills/impeccable/frontend-design/reference/interaction-design.md +123 -0
  66. package/config/agent/skills/impeccable/frontend-design/reference/motion-design.md +99 -0
  67. package/config/agent/skills/impeccable/frontend-design/reference/responsive-design.md +114 -0
  68. package/config/agent/skills/impeccable/frontend-design/reference/spatial-design.md +100 -0
  69. package/config/agent/skills/impeccable/frontend-design/reference/typography.md +133 -0
  70. package/config/agent/skills/impeccable/frontend-design/reference/ux-writing.md +107 -0
  71. package/config/agent/skills/impeccable/harden/SKILL.md +358 -0
  72. package/config/agent/skills/impeccable/normalize/SKILL.md +74 -0
  73. package/config/agent/skills/impeccable/onboard/SKILL.md +249 -0
  74. package/config/agent/skills/impeccable/optimize/SKILL.md +269 -0
  75. package/config/agent/skills/impeccable/overdrive/SKILL.md +145 -0
  76. package/config/agent/skills/impeccable/polish/SKILL.md +206 -0
  77. package/config/agent/skills/impeccable/quieter/SKILL.md +106 -0
  78. package/config/agent/skills/impeccable/teach-impeccable/SKILL.md +72 -0
  79. package/config/agent/skills/impeccable/typeset/SKILL.md +119 -0
  80. package/package.json +1 -1
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: quieter
3
+ description: 弱化过于大胆或视觉攻击性强的设计,在保持设计品质和影响力的同时降低视觉强度。
4
+ disable-model-invocation: true
5
+ user-invocable: true
6
+ args:
7
+ - name: target
8
+ description: The feature or component to make quieter (optional)
9
+ required: false
10
+ ---
11
+
12
+ Reduce visual intensity in designs that are too bold, aggressive, or overstimulating, creating a more refined and approachable aesthetic without losing effectiveness.
13
+
14
+ ## MANDATORY PREPARATION
15
+
16
+ Use the frontend-design skill — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run teach-impeccable first.
17
+
18
+ ---
19
+
20
+ ## Assess Current State
21
+
22
+ Analyze what makes the design feel too intense:
23
+
24
+ 1. **Identify intensity sources**:
25
+ - **Color saturation**: Overly bright or saturated colors
26
+ - **Contrast extremes**: Too much high-contrast juxtaposition
27
+ - **Visual weight**: Too many bold, heavy elements competing
28
+ - **Animation excess**: Too much motion or overly dramatic effects
29
+ - **Complexity**: Too many visual elements, patterns, or decorations
30
+ - **Scale**: Everything is large and loud with no hierarchy
31
+
32
+ 2. **Understand the context**:
33
+ - What's the purpose? (Marketing vs tool vs reading experience)
34
+ - Who's the audience? (Some contexts need energy)
35
+ - What's working? (Don't throw away good ideas)
36
+ - What's the core message? (Preserve what matters)
37
+
38
+ If any of these are unclear from the codebase, STOP and call the AskUserQuestion tool to clarify.
39
+
40
+ **CRITICAL**: "Quieter" doesn't mean boring or generic. It means refined, sophisticated, and easier on the eyes. Think luxury, not laziness.
41
+
42
+ ## Plan Refinement
43
+
44
+ Create a strategy to reduce intensity while maintaining impact:
45
+
46
+ - **Color approach**: Desaturate or shift to more sophisticated tones?
47
+ - **Hierarchy approach**: Which elements should stay bold (very few), which should recede?
48
+ - **Simplification approach**: What can be removed entirely?
49
+ - **Sophistication approach**: How can we signal quality through restraint?
50
+
51
+ **IMPORTANT**: Great quiet design is harder than great bold design. Subtlety requires precision.
52
+
53
+ ## Refine the Design
54
+
55
+ Systematically reduce intensity across these dimensions:
56
+
57
+ ### Color Refinement
58
+ - **Reduce saturation**: Shift from fully saturated to 70-85% saturation
59
+ - **Soften palette**: Replace bright colors with muted, sophisticated tones
60
+ - **Reduce color variety**: Use fewer colors more thoughtfully
61
+ - **Neutral dominance**: Let neutrals do more work, use color as accent (10% rule)
62
+ - **Gentler contrasts**: High contrast only where it matters most
63
+ - **Tinted grays**: Use warm or cool tinted grays instead of pure gray—adds sophistication without loudness
64
+ - **Never gray on color**: If you have gray text on a colored background, use a darker shade of that color or transparency instead
65
+
66
+ ### Visual Weight Reduction
67
+ - **Typography**: Reduce font weights (900 → 600, 700 → 500), decrease sizes where appropriate
68
+ - **Hierarchy through subtlety**: Use weight, size, and space instead of color and boldness
69
+ - **White space**: Increase breathing room, reduce density
70
+ - **Borders & lines**: Reduce thickness, decrease opacity, or remove entirely
71
+
72
+ ### Simplification
73
+ - **Remove decorative elements**: Gradients, shadows, patterns, textures that don't serve purpose
74
+ - **Simplify shapes**: Reduce border radius extremes, simplify custom shapes
75
+ - **Reduce layering**: Flatten visual hierarchy where possible
76
+ - **Clean up effects**: Reduce or remove blur effects, glows, multiple shadows
77
+
78
+ ### Motion Reduction
79
+ - **Reduce animation intensity**: Shorter distances (10-20px instead of 40px), gentler easing
80
+ - **Remove decorative animations**: Keep functional motion, remove flourishes
81
+ - **Subtle micro-interactions**: Replace dramatic effects with gentle feedback
82
+ - **Refined easing**: Use ease-out-quart for smooth, understated motion—never bounce or elastic
83
+ - **Remove animations entirely** if they're not serving a clear purpose
84
+
85
+ ### Composition Refinement
86
+ - **Reduce scale jumps**: Smaller contrast between sizes creates calmer feeling
87
+ - **Align to grid**: Bring rogue elements back into systematic alignment
88
+ - **Even out spacing**: Replace extreme spacing variations with consistent rhythm
89
+
90
+ **NEVER**:
91
+ - Make everything the same size/weight (hierarchy still matters)
92
+ - Remove all color (quiet ≠ grayscale)
93
+ - Eliminate all personality (maintain character through refinement)
94
+ - Sacrifice usability for aesthetics (functional elements still need clear affordances)
95
+ - Make everything small and light (some anchors needed)
96
+
97
+ ## Verify Quality
98
+
99
+ Ensure refinement maintains quality:
100
+
101
+ - **Still functional**: Can users still accomplish tasks easily?
102
+ - **Still distinctive**: Does it have character, or is it generic now?
103
+ - **Better reading**: Is text easier to read for extended periods?
104
+ - **Sophistication**: Does it feel more refined and premium?
105
+
106
+ Remember: Quiet design is confident design. It doesn't need to shout. Less is more, but less is also harder. Refine with precision and maintain intentionality.
@@ -0,0 +1,72 @@
1
+ ---
2
+ name: teach-impeccable
3
+ description: 一次性设置,收集项目设计上下文并保存至 AI 配置文件,运行一次即可建立持久的设计指导原则。
4
+ disable-model-invocation: true
5
+ user-invocable: true
6
+ ---
7
+
8
+ Gather design context for this project, then persist it for all future sessions.
9
+
10
+ ## Step 1: Explore the Codebase
11
+
12
+ Before asking questions, thoroughly scan the project to discover what you can:
13
+
14
+ - **README and docs**: Project purpose, target audience, any stated goals
15
+ - **Package.json / config files**: Tech stack, dependencies, existing design libraries
16
+ - **Existing components**: Current design patterns, spacing, typography in use
17
+ - **Brand assets**: Logos, favicons, color values already defined
18
+ - **Design tokens / CSS variables**: Existing color palettes, font stacks, spacing scales
19
+ - **Any style guides or brand documentation**
20
+
21
+ Note what you've learned and what remains unclear.
22
+
23
+ ## Step 2: Ask UX-Focused Questions
24
+
25
+ STOP and call the AskUserQuestion tool to clarify. Focus only on what you couldn't infer from the codebase:
26
+
27
+ ### Users & Purpose
28
+ - Who uses this? What's their context when using it?
29
+ - What job are they trying to get done?
30
+ - What emotions should the interface evoke? (confidence, delight, calm, urgency, etc.)
31
+
32
+ ### Brand & Personality
33
+ - How would you describe the brand personality in 3 words?
34
+ - Any reference sites or apps that capture the right feel? What specifically about them?
35
+ - What should this explicitly NOT look like? Any anti-references?
36
+
37
+ ### Aesthetic Preferences
38
+ - Any strong preferences for visual direction? (minimal, bold, elegant, playful, technical, organic, etc.)
39
+ - Light mode, dark mode, or both?
40
+ - Any colors that must be used or avoided?
41
+
42
+ ### Accessibility & Inclusion
43
+ - Specific accessibility requirements? (WCAG level, known user needs)
44
+ - Considerations for reduced motion, color blindness, or other accommodations?
45
+
46
+ Skip questions where the answer is already clear from the codebase exploration.
47
+
48
+ ## Step 3: Write Design Context
49
+
50
+ Synthesize your findings and the user's answers into a `## Design Context` section:
51
+
52
+ ```markdown
53
+ ## Design Context
54
+
55
+ ### Users
56
+ [Who they are, their context, the job to be done]
57
+
58
+ ### Brand Personality
59
+ [Voice, tone, 3-word personality, emotional goals]
60
+
61
+ ### Aesthetic Direction
62
+ [Visual tone, references, anti-references, theme]
63
+
64
+ ### Design Principles
65
+ [3-5 principles derived from the conversation that should guide all design decisions]
66
+ ```
67
+
68
+ Write this section to `.impeccable.md` in the project root. If the file already exists, update the Design Context section in place.
69
+
70
+ Then STOP and call the AskUserQuestion tool to clarify. whether they'd also like the Design Context appended to CLAUDE.md. If yes, append or update the section there as well.
71
+
72
+ Confirm completion and summarize the key design principles that will now guide all future work.
@@ -0,0 +1,119 @@
1
+ ---
2
+ name: typeset
3
+ description: 通过修正字体选择、层级、大小、粗细一致性和可读性来优化排版,让文字呈现得更有意图且精致。
4
+ disable-model-invocation: true
5
+ user-invocable: true
6
+ args:
7
+ - name: target
8
+ description: The feature or component to improve typography for (optional)
9
+ required: false
10
+ ---
11
+
12
+ Assess and improve typography that feels generic, inconsistent, or poorly structured — turning default-looking text into intentional, well-crafted type.
13
+
14
+ ## MANDATORY PREPARATION
15
+
16
+ Use the frontend-design skill — it contains design principles, anti-patterns, and the **Context Gathering Protocol**. Follow the protocol before proceeding — if no design context exists yet, you MUST run teach-impeccable first.
17
+
18
+ ---
19
+
20
+ ## Assess Current Typography
21
+
22
+ Analyze what's weak or generic about the current type:
23
+
24
+ 1. **Font choices**:
25
+ - Are we using invisible defaults? (Inter, Roboto, Arial, Open Sans, system defaults)
26
+ - Does the font match the brand personality? (A playful brand shouldn't use a corporate typeface)
27
+ - Are there too many font families? (More than 2-3 is almost always a mess)
28
+
29
+ 2. **Hierarchy**:
30
+ - Can you tell headings from body from captions at a glance?
31
+ - Are font sizes too close together? (14px, 15px, 16px = muddy hierarchy)
32
+ - Are weight contrasts strong enough? (Medium vs Regular is barely visible)
33
+
34
+ 3. **Sizing & scale**:
35
+ - Is there a consistent type scale, or are sizes arbitrary?
36
+ - Does body text meet minimum readability? (16px+)
37
+ - Is the sizing strategy appropriate for the context? (Fixed `rem` scales for app UIs; fluid `clamp()` for marketing/content page headings)
38
+
39
+ 4. **Readability**:
40
+ - Are line lengths comfortable? (45-75 characters ideal)
41
+ - Is line-height appropriate for the font and context?
42
+ - Is there enough contrast between text and background?
43
+
44
+ 5. **Consistency**:
45
+ - Are the same elements styled the same way throughout?
46
+ - Are font weights used consistently? (Not bold in one section, semibold in another for the same role)
47
+ - Is letter-spacing intentional or default everywhere?
48
+
49
+ **CRITICAL**: The goal isn't to make text "fancier" — it's to make it clearer, more readable, and more intentional. Good typography is invisible; bad typography is distracting.
50
+
51
+ ## Plan Typography Improvements
52
+
53
+ Consult the [typography reference](reference/typography.md) from the frontend-design skill for detailed guidance on scales, pairing, and loading strategies.
54
+
55
+ Create a systematic plan:
56
+
57
+ - **Font selection**: Do fonts need replacing? What fits the brand/context?
58
+ - **Type scale**: Establish a modular scale (e.g., 1.25 ratio) with clear hierarchy
59
+ - **Weight strategy**: Which weights serve which roles? (Regular for body, Semibold for labels, Bold for headings — or whatever fits)
60
+ - **Spacing**: Line-heights, letter-spacing, and margins between typographic elements
61
+
62
+ ## Improve Typography Systematically
63
+
64
+ ### Font Selection
65
+
66
+ If fonts need replacing:
67
+ - Choose fonts that reflect the brand personality
68
+ - Pair with genuine contrast (serif + sans, geometric + humanist) — or use a single family in multiple weights
69
+ - Ensure web font loading doesn't cause layout shift (`font-display: swap`, metric-matched fallbacks)
70
+
71
+ ### Establish Hierarchy
72
+
73
+ Build a clear type scale:
74
+ - **5 sizes cover most needs**: caption, secondary, body, subheading, heading
75
+ - **Use a consistent ratio** between levels (1.25, 1.333, or 1.5)
76
+ - **Combine dimensions**: Size + weight + color + space for strong hierarchy — don't rely on size alone
77
+ - **App UIs**: Use a fixed `rem`-based type scale, optionally adjusted at 1-2 breakpoints. Fluid sizing undermines the spatial predictability that dense, container-based layouts need
78
+ - **Marketing / content pages**: Use fluid sizing via `clamp(min, preferred, max)` for headings and display text. Keep body text fixed
79
+
80
+ ### Fix Readability
81
+
82
+ - Set `max-width` on text containers using `ch` units (`max-width: 65ch`)
83
+ - Adjust line-height per context: tighter for headings (1.1-1.2), looser for body (1.5-1.7)
84
+ - Increase line-height slightly for light-on-dark text
85
+ - Ensure body text is at least 16px / 1rem
86
+
87
+ ### Refine Details
88
+
89
+ - Use `tabular-nums` for data tables and numbers that should align
90
+ - Apply proper `letter-spacing`: slightly open for small caps and uppercase, default or tight for large display text
91
+ - Use semantic token names (`--text-body`, `--text-heading`), not value names (`--font-16`)
92
+ - Set `font-kerning: normal` and consider OpenType features where appropriate
93
+
94
+ ### Weight Consistency
95
+
96
+ - Define clear roles for each weight and stick to them
97
+ - Don't use more than 3-4 weights (Regular, Medium, Semibold, Bold is plenty)
98
+ - Load only the weights you actually use (each weight adds to page load)
99
+
100
+ **NEVER**:
101
+ - Use more than 2-3 font families
102
+ - Pick sizes arbitrarily — commit to a scale
103
+ - Set body text below 16px
104
+ - Use decorative/display fonts for body text
105
+ - Disable browser zoom (`user-scalable=no`)
106
+ - Use `px` for font sizes — use `rem` to respect user settings
107
+ - Default to Inter/Roboto/Open Sans when personality matters
108
+ - Pair fonts that are similar but not identical (two geometric sans-serifs)
109
+
110
+ ## Verify Typography Improvements
111
+
112
+ - **Hierarchy**: Can you identify heading vs body vs caption instantly?
113
+ - **Readability**: Is body text comfortable to read in long passages?
114
+ - **Consistency**: Are same-role elements styled identically throughout?
115
+ - **Personality**: Does the typography reflect the brand?
116
+ - **Performance**: Are web fonts loading efficiently without layout shift?
117
+ - **Accessibility**: Does text meet WCAG contrast ratios? Is it zoomable to 200%?
118
+
119
+ Remember: Typography is the foundation of interface design — it carries the majority of information. Getting it right is the highest-leverage improvement you can make.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ia-ccun/code-agent-cli",
3
- "version": "0.0.47-test.1",
3
+ "version": "0.0.49-beta.0",
4
4
  "description": "AI Coding Agent CLI - 基于OpenClaw🦞底层Agent(pi)原理封装的编码智能体(供学习使用)。",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",