Skip to content
Back to skills

Architecture

ASecurity

Status: implemented English | [中文](2026-11-06-single-office-skill.zh.md)

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 28, 2026
ai-agentspythontesting

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned November 28, 2026

npx -y skills add Hejunlong27/AIAuditOx --skill architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hejunlong27-architecture/badge)](https://www.skillsdirectory.com/skills/hejunlong27-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
# Agent Note: One Office skill with concise inline guidance

Status: implemented

English | [中文](2026-11-06-single-office-skill.zh.md)

## Problem

The [Office provider](../../../../packages/skill/skill-office/README.md) listed four skills: the `office` router and the `office-docx`, `office-pptx`, and `office-xlsx` authoring skills. Every request carried four catalog summaries, although a format skill is useful only after the router has chosen it. Each format skill repeated the instruction to load `office` for the Office tools, the provider appended the same Python environment section to three bodies, and the format bodies mostly carried step-by-step workflow instructions and examples that constrained the model's approach instead of stating non-obvious harness facts. Moving those format bodies into separate files read on demand would still cost an extra `read` step and depend on Host filesystem access. The catalog should identify the Office capability once and load only DSH-specific facts and silent data-loss pitfalls in one step.

## Decision

`@deepseek-ai/dsh-skill-office` registers only `office`. The `office` body states that `office_render`, `office_convert`, and `office_recalculate` become available on the next step, notes bundled `pypdf` for existing PDFs and `office_convert` for legacy `.doc`, `.ppt`, and `.xls` files, records concise Word, PowerPoint, and Excel pitfalls that can silently drop formatting, East Asian fonts, layout fit, formula results, or sheets, and appends the configured Python environment section once. No separate format files are bundled or read. This supersedes the catalog and authoring bodies of [progressive Office skills](2026-09-27-progressive-office-skills.md) while keeping the activation design of the [on-demand Office tools](2026-10-31-native-office-tool.md) with `['office']` as the default `activationSkills`.

The [Office tools](../../../../packages/document/tool-office/README.md) default `activationSkills` to `['office']`. During catalog discovery and loading, the provider reads `office/SKILL.md`; a missing file or invalid metadata omits `office` from the catalog with a warning, and other read errors leave discovery incomplete so that the registry retries it.

Because the entire guidance travels in the `skill` tool result, no second `read` call is needed and the guidance is identical in local, Desktop (`app.asar`), and remote or SSH workspaces.

## Alternatives considered

**Keep the four catalog skills.** Separate skills keep the `/office-docx`, `/office-pptx`, and `/office-xlsx` commands and let a user replace one format by defining a skill with that name. They cost three catalog lines in every request, repeat the routing obligations, and append the Python section three times.

**Put per-format guidance in `docx.md`, `pptx.md`, and `xlsx.md` read on demand.** Resource files keep format detail out of standalone render or conversion turns, but require an extra `read` tool call for authoring, depend on the Session's `read` tool reaching Host files (failing in SSH or remote filesystems), and preserve lengthy workflow prescriptions that the model does not need when only non-obvious pitfalls are kept.

**Hide the format skills from the catalog but keep them loadable.** This needs a generic catalog visibility policy in the skill registry, independent of invocation permission, for one provider's benefit.

## Consequences

The catalog carries one Office summary (≤ 50 estimated tokens), and loading `office` adds one compact body (≤ 350 estimated tokens including the Python environment section) while activating the Office tools for the next step. Every Office task loads the same concise body, with no follow-up file read and no Host-filesystem dependency for skill guidance.

Users lose the direct format commands and per-format overrides: `/office` is the only command, and a user-defined `office` skill replaces the bundled body. The [upgrade guide](../../../../docs/upgrade-guide/v0.2.2-rc.5/office-single-skill/guide.md) owns the migration.

## Testing

`skill-office.spec.ts` covers the single catalog entry, the description and body token budgets, the inline pitfall and Python environment content, omission with a warning when `office/SKILL.md` is missing, has invalid metadata, or disappears after discovery, and retries after other read errors. `progressive-loading.spec.ts` covers `skill(office)` in native and PTC mode, through resume and fork. `activation.spec.ts` covers the `['office']` default. The recorded headless scenarios `office-progressive-native`, `office-progressive-ptc`, `office-skills`, `office-authoring-checker`, and `office-skills-no-renderer` replay the single-skill flow.

Files in this skill

  • 2026-06-11-dev-invariants-over-deep-readonly.i18n.yaml1.6 KB
  • 2026-06-11-dev-invariants-over-deep-readonly.md4.9 KB
  • 2026-06-11-dev-invariants-over-deep-readonly.zh.md4.5 KB
  • 2026-06-11-event-sourced-sessions.i18n.yaml1011 B
  • 2026-06-11-event-sourced-sessions.md2 KB
  • 2026-06-11-event-sourced-sessions.zh.md2 KB
  • 2026-06-13-capability-seams.i18n.yaml1.2 KB
  • 2026-06-13-capability-seams.md4.6 KB
  • 2026-06-13-capability-seams.zh.md4.4 KB
  • 2026-06-13-twin-llm-adapters.i18n.yaml976 B
  • 2026-06-13-twin-llm-adapters.md2.9 KB
  • 2026-06-13-twin-llm-adapters.zh.md3 KB
  • 2026-06-18-session-surface.i18n.yaml1.9 KB
  • 2026-06-18-session-surface.md7.7 KB
  • 2026-06-18-session-surface.zh.md7.5 KB
  • 2026-06-21-bounded-llm-request-recovery.i18n.yaml2.2 KB
  • 2026-06-21-bounded-llm-request-recovery.md22.8 KB
  • 2026-06-21-bounded-llm-request-recovery.zh.md21.8 KB
  • 2026-06-24-web-capability-seam.i18n.yaml3.8 KB
  • 2026-06-24-web-capability-seam.md33.1 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.