بنقرة واحدة
aceharness-chat-card
通用可视化卡片渲染技能。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
通用可视化卡片渲染技能。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
使用 ACEHarness 内置 RAG/LanceDB 知识库进行只读检索。
使用 ACEHarness 运行时提供的 workspace SQLite 能力创建和维护 Skill 数据库。
Index of available skills.
ACEHarness workflow creation skill. Helps reason about serial workflow states, per-state steps, parallel step groups, and scoped workflow patches.
ACEHarness Spec Coding skill for generating, reviewing, revising, and executing spec-first requirements/design/tasks artifacts tied to workflow steps. Use when turning rough workflow requirements into actionable requirements.md, design.md, tasks.md, when revising AI-generated specs, or when keeping SpecCoding artifacts aligned with workflow execution.
用 rules_registry 辅助 PR/代码评审:准备 diff(git/PR/编码 agent 上下文)→ L0 扫描 → select_rules 路由 → 四步判定 → rule-issue-reports 上报。 适用于 code review、PR 审查、仓颉/Cangjie;可运行于 Cursor / OpenCode / Claude Code 等任意 Agent 环境。
استنادا إلى تصنيف SOC المهني
| name | aceharness-chat-card |
| description | 通用可视化卡片渲染技能。 |
| descriptionZH | 可视化卡片渲染。【触发场景】用卡片显示、做个卡片展示、生成可视化卡片/PR 卡片/Issue 卡片/card/tabs/badge/徽章/进度条/header/info 行。【注意】无需说 AceHarness,看到卡片需求即触发。输出 kind=card 的 JSON。 |
| tags | ["卡片","UI","对话","可视化"] |
通用可视化卡片渲染技能。只要用户要“展示型卡片”,就用它。
<result>所有结构化结果都放在 <result>...</result> 内,且其中只能有一个 JSON 对象。
{"kind":"card","payload":{...}}{"kind":"home_sidebar","payload":{...}}、{"kind":"workflow_clarification_question","data":{...}} 等<result> 内容<result> 外的普通文字与 <result> 内的 JSON 要分开正确示例:
这是分析结果:
<result>
{"kind":"card","payload":{"header":{"title":"示例"},"blocks":[{"type":"text","content":"详情"}]}}
</result>
错误示例:
<result>
[任何 fenced code block]
</result>
以下场景不要输出 card:
home_sidebarworkflow_clarification_question、spec_requirement、workflow_state_steps)这些都应该输出对应 kind 的机器可读 JSON。
payload 本体必须先通过校验脚本:
echo '{"header":{"title":"示例"},"blocks":[{"type":"text","content":"详情"}]}' | node /absolute/path/to/skills/aceharness-chat-card/scripts/validate-card.mjs
要求:零错误,零告警。
interface CardSchema {
header?: {
icon?: string;
title: string;
subtitle?: string;
gradient?: string;
badges?: { text: string; color?: string }[];
};
blocks: Block[];
actions?: { label: string; prompt: string; icon?: string }[];
}
type Block =
| { type: 'info'; rows: { label: string; value: string; icon?: string }[] }
| { type: 'badges'; items: { text: string; color?: string }[] }
| { type: 'text'; content: string; maxLines?: number }
| { type: 'code'; code: string; lang?: string; copyable?: boolean }
| { type: 'progress'; value: number; max?: number; label?: string }
| { type: 'steps'; current: number; total: number }
| { type: 'tabs'; tabs: { key: string; label: string; blocks: Block[] }[] }
| { type: 'collapse'; title: string; icon?: string; subtitle?: string; blocks: Block[]; defaultOpen?: boolean }
| { type: 'list'; items: { icon?: string; color?: string; text: string }[] }
| { type: 'status'; state: string; color?: string; animated?: boolean; rows?: { label: string; value: string }[] }
| { type: 'actions'; items: { label: string; prompt: string; icon?: string }[] }
| { type: 'divider' };
blocks: []payload 直接输出成裸 card 对象,没有 kind<result> 里塞 fenced code block<result> 里<result>
{"kind":"card","payload":{"header":{"icon":"merge_type","title":"fix: 修复内存泄漏","subtitle":"repo#1224","badges":[{"text":"open","color":"green"},{"text":"bug-fix","color":"orange"}]},"blocks":[{"type":"info","rows":[{"label":"作者","value":"zhangsan"},{"label":"目标分支","value":"main"}]},{"type":"text","content":"修复了编译器在处理大型 AST 时的内存泄漏问题。","maxLines":3}]}}
</result>
<result>
{"kind":"card","payload":{"header":{"icon":"play_arrow","title":"AST 内存优化"},"blocks":[{"type":"status","state":"运行中","color":"green","animated":true,"rows":[{"label":"当前阶段","value":"测试阶段"},{"label":"当前步骤","value":"tester"}]},{"type":"progress","value":7,"max":12,"label":"7/12 步骤完成"}]}}
</result>