Skip to content

[feat] agent: ship the science explainer as a built-in skill - #457

Merged
allendyu merged 1 commit into
ThinkFlowLab:mainfrom
allendyu:feat/builtin-science-explainer-skill
Nov 23, 2026
Merged

allendyu merged 1 commit into
ThinkFlowLab:mainfrom
allendyu:feat/builtin-science-explainer-skill

Conversation

@allendyu

Copy link
Copy Markdown
Collaborator

Summary

Ship science-explainer as a built-in agent skill instead of a skill that only exists in one workspace profile.

  • Add the skill to packages/agent/skills/, the source tree that both install paths read:
    • a source checkout resolves builtin_skills() to packages/agent/skills;
    • the build copies that tree into opendirector/_bundled/skills, which is what a packaged install reads.
  • Keep the skill body unchanged. It carries two generation modes (staged with per-stage confirmation, oneshot with automatic review and up to three retries), the eight pipeline stages from script to deliverable, and the v2.1 ordering rule: narration is produced before shots, and shot length derives from the measured voice duration plus a 0.9 s breath.
  • The bundled copy replaces the workspace copy the same content previously lived in, so the assistant lists one science-explainer entry tagged builtin rather than two same-named entries from different roots.

Linked issue

No issue applies: the change promotes an existing workspace skill into the bundled set. If you want this tracked as a request instead, tell me and I will open one before merge.

  • Fixes #N or Refs #N is included, or no issue applies

Labels

  • Labels applied — type:feat, area:harness

Test plan

  • Local:
    • Called the app's real loader, opendirector.agent.skills.skills(), against this tree with a temporary project directory. It returns science-explainer with source builtin, next to the existing built-in character-replacement; the two workspace skills (ai-film-pipeline, anatomy) still report workspace.
    • pytest tests/test_installation.py -q → 5 passed (covers the builtin_skills() path assertions for both source and bundled layouts).
    • pytest tests/test_native_runtime.py -q → 28 passed, 7 skipped.
    • pre-commit run → end-of-files, mixed line endings and trailing whitespace pass on the staged file.
    • SKILL.md is 10,160 bytes, under the loader's 65,536-byte limit.
  • Left to CI: the Release checks on this branch.

Evidence that it works

  • Media attached, or N/A because: the user-visible effect is one extra row in the assistant's skill list, and the machine-readable proof is the loader output quoted in the test plan. No canvas or generation flow changes.

Provider verification

  • Real-provider calls are described honestly, or none were made — none were made. This change only adds a bundled resource file; it runs no model or generation request.

Bilingual UI

  • Both locales are updated, or no user-facing copy changed — no user-facing strings change. The skill content itself stays as authored (Chinese), matching the existing bundled character-replacement skill.

## summary

- Add `science-explainer` to the bundled agent skills, so the explainer
  workflow ships with every OpenDirector install instead of depending on
  a skill an agent dropped into one workspace profile.
- Keep the skill body unchanged: the staged / oneshot generation modes,
  the eight stages from script to the four-file deliverable, and the
  v2.1 rule that voice is produced before shots so shot length derives
  from the measured narration.
- Both install paths pick it up: source checkouts read
  `packages/agent/skills`, and the build copies that tree into
  `_bundled/skills`, which is where a packaged install reads from.
- The promoted copy replaces the workspace skill, so the assistant lists
  one `science-explainer` entry tagged `builtin`.

## validation

- `opendirector.agent.skills.skills()` against this tree returns
  `science-explainer` with source `builtin`, next to the existing
  `character-replacement`.
- `pytest tests/test_installation.py -q` → 5 passed.
- `pytest tests/test_native_runtime.py -q` → 28 passed, 7 skipped.
- `pre-commit run` passes on the staged file (end-of-files, line
  endings, trailing whitespace).
@allendyu allendyu added type:feat New capability or behaviour area:harness Harness and skill integration (Default, OpenCode, Codex, Claude Code, Jiuwen, DSH) labels Nov 23, 2026
@github-actions github-actions Bot added the area:agent Agent runtime, assistant chat and tools label Nov 23, 2026
@github-actions
github-actions Bot requested review from FayeSpica and wuzhf9 November 23, 2026 02:08
@allendyu
allendyu merged commit 6a41c57 into ThinkFlowLab:main Nov 23, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:agent Agent runtime, assistant chat and tools area:harness Harness and skill integration (Default, OpenCode, Codex, Claude Code, Jiuwen, DSH) type:feat New capability or behaviour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant