Commit Graph
7 Commits
Author SHA1 Message Date
yige 9fec1df5d8 fix(pptx): 区分源稿回读与 PowerPoint 交付 / Separate source readback from PowerPoint delivery (#456)
## 中文

区分保存或重开工作台源稿与 PowerPoint 交付。标题和页数复核用创建回执的文件引用与版本直接调用 ReadSlides。需要 PPTX
的交付继续预览并按版本导出。中英文技能与目录元数据同步为 1.0.11。

## English

Distinguish saving and reopening an editable workbench source from
delivering a PowerPoint file. Use the creation receipt’s file reference
and version to read back the saved title and page count. Keep the
workbench review and versioned export flow for PPTX delivery. Update
both skill locales and catalog metadata to 1.0.11.

## 验证 / Testing

- Passed catalog metadata checks, translation freshness, 87 validator
tests, and the 14 collection checks.
2026-12-05 19:33:57 +08:00
yige be8d8307af fix(pptx): 保留模型自主澄清需求 / Let the model choose what to clarify (#417)
## 中文

- PPT Skill 1.0.10 让模型根据任务判断需要澄清的内容,包括主题、受众、用途、篇幅、风格和材料。
- 允许先澄清再按需加载制作规则。继续使用工作台预览和可编辑交付。
- 双语目录、正文及版本同步。市场校验、严格元数据校验及翻译新鲜度检查通过。

## English

- PPT Skill 1.0.10 leaves the choice of what to clarify to the model,
including the topic, audience, purpose, length, style, and materials.
- Let the model clarify before loading the authoring rules when it
helps. Keep workbench preview and editable delivery.
- Synchronize both locales and the catalog version. Catalog validation,
strict metadata validation, and translation freshness checks passed.
2026-12-01 16:10:59 +08:00
yige 00bd0f7989 fix(pptx): 确定主题后再加载制稿规则 / Load authoring rules after clarifying the topic (#415)
## 中文

- 新建演示文稿缺主题时先问一个主题或用途问题,已明确主题或资料后由模型调用 PPT Skill。
- Plan 简要记录目标、交付和检查项。给出原生细横线的有效尺寸示例,保留全页预览与可编辑源稿和 PPTX。
- 校验市场目录、全部中英文内容和翻译哈希,更新到 1.0.8。

## English

- Ask for the topic or purpose before loading the PPT skill when a new
deck has neither. The model loads the skill once the topic or source is
available.
- Keep the Plan to the goal, deliverables, and checks. Show a valid size
for editable thin horizontal rules and retain full-deck preview and
editable exports.
- Validated the catalog and translation freshness. Bump the skill to
1.0.8.
2026-12-01 15:49:14 +08:00
yigeandYige 1edcef49b0 fix: load PPTX workbench guidance and tools on demand (#387)
## Summary

- Update the built-in `pptx` skill to guide editable presentation
authoring in DesireCore. Keep the short catalog entry and load the
bilingual workbench instructions on demand.
- Use the existing Skill tool disclosure to make authorized presentation
and progress tools available in the same turn. Keep existing PPTX
extraction, conversion, and template workflows as separate references.
- Retain the existing upstream attribution and source-available license.
The workbench path uses DesireCore tools. Existing file-processing
dependencies are documented in the bundled references.

## Verification

- Checked Market catalog validation and translation freshness.
- Tested the locally installed candidate in an isolated DesireCore
desktop instance. Verified one successful Skill call, all-page HTML/SVG
preview, live source editing, and editable PPTX output in PowerPoint.

## 中文摘要

- 更新内置 `pptx` 技能,由模型按需加载双语工作台制作指引。通过现有声明机制提供已授权的制稿工具,保留已有 PPTX 处理指南。
- 已通过目录与翻译校验,并在隔离桌面实例验证工作台预览编辑与原生 PPTX 导出。

Co-authored-by: Yige <6657330+yi-ge@users.noreply.github.com>
2026-11-29 03:32:49 +08:00
yige 1b9e82d95d fix(office): 修复独立技能的 Python 依赖入口 (#229)
为 pptx 与 xlsx 提供标准库启动器,使用已准备的受管 XML 依赖,保留目标退出码并避免失败后重放编辑。

同步双语说明、目录版本和固定启动器合同测试。

Refs desirecore/desirecore#5335
2026-10-28 10:24:31 +08:00
124608760andClaude Opus 4.6 08b02b2239 fix: add Script Path Rule to docx/pptx/xlsx skills (#14)
## Summary

- 为 docx/pptx/xlsx 三个技能的 SKILL.md 和 SKILL.zh-CN.md 添加"脚本路径规则"章节
- 告知 Agent 在执行技能自带脚本时必须使用 `<skill-dir>/` 前缀,因为 Agent 工作目录是用户项目目录而非技能目录
- 更新 en-US 块的 `source_hash`(内容已变更)
- 将 en-US 标记为 `translated_by: human`,跳过 CI 自动翻译

## Test plan

- [ ] 在 dev 环境验证 docx/pptx/xlsx 技能执行脚本时路径正确
- [ ] CI i18n-validate 通过
- [ ] CI i18n-auto-translate 跳过(translated_by: human)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-05-13 20:25:09 +08:00
yigeandClaude Opus 4.7 8bdda4afb1 feat: skills i18n 改造(schemaVersion 1.1,零向后兼容) (#1)
* feat: skills i18n 改造 — schemaVersion 1.1,零向后兼容

把 21 个 skills + 1 个 agent + manifest/categories 全量迁移到 schemaVersion 1.1
的 i18n 结构,配套 CI AI 翻译流水线(GitHub Models)与本地工具链。

## 关键变更

### 数据结构(破坏性,schemaVersion 1.0 → 1.1)
- SKILL.md: 顶层 name 改为 ASCII slug(== 目录名,符合 agentskills.io 规范);
  中文显示名/short_desc/description 全部迁入 metadata.i18n.<locale>
- agents/<id>/agent.json: shortDesc/fullDesc/tags/persona.{role,traits} 迁入
  i18n.<locale>;changelog[].changes 改为 { <locale>: string[] } 对象
- categories.json: 每个分类的 label/description 迁入 i18n.<locale>,顶层只剩
  color/icon
- manifest.json: 加 supportedLocales / defaultLocale;顶层 description 迁入
  i18n.<locale>

### Body 文件结构
- 根 SKILL.md = frontmatter + default_locale (en-US) body
- SKILL.<locale>.md = 各 locale 的 markdown body(首行 <!-- locale: xx --> 自校验)

### 工具链(scripts/i18n/)
- glossary.json: zh→en 术语表 + do_not_translate 白名单
- schema/skill-frontmatter.schema.json: i18n frontmatter JSON Schema
- validate-i18n.py: 8 条校验规则(name 合规 / locale 完整性 / hash 一致性等)
- translate.py: GitHub Models / Anthropic 双 backend,sha256 增量翻译
- migrate.py: 一次性迁移脚本(旧格式 → i18n 结构)

### CI(.github/workflows/)
- i18n-validate.yml: PR 触发跑 validate + translate --check
- i18n-translate.yml: PR 触发用 GitHub Models(默认 openai/gpt-5-mini)翻译缺失
  locale,自动追加 commit;可切到 ANTHROPIC_API_KEY 走 Claude

### 文档
- docs/I18N.md: 作者贡献指南(schema 说明 / 提交流程 / 常见问题)
- README.md: 加多语言段落

## 验证

- uv run scripts/i18n/validate-i18n.py: OK,49 文件 0 错误
- uv run scripts/i18n/translate.py --check: 0 stale locale
- 21 skills 标题数 zh-CN == en-US 严格对齐(最大 66=66)
- skills-ref 规范校验:全部通过(顶层 name ASCII slug + description 单字段)

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(i18n): 修复 PR #1 review 反馈的 6 项问题

- schema: translated_by 正则放宽为 ^(human|ai:[A-Za-z0-9._:/-]+)$,接受
  'ai:github:openai/gpt-5-mini' 这类 backend:model 形式(CI 翻译输出格式)
- README + docs/I18N.md: 修正"CI 用 Claude API"误导描述,正确说明默认是
  GitHub Models(openai/gpt-5-mini)+ GITHUB_TOKEN,可选切到 Anthropic
- skills/minimax-tts/SKILL.md & SKILL.zh-CN.md: 删除多余的 ``` 闭合,避免
  Markdown 后续渲染错乱
- skills/docx/SKILL.md: 翻译时丢失的 • Unicode escape 示例已恢复,
  与 zh-CN 版本对齐

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-05 00:26:33 +08:00