Skip to content

docs(engine_fn): reshape the iii skill for on-demand reads - #2012

Open
rohitg00 wants to merge 4 commits into
mainfrom
docs/iii-skill-bundle
Open

docs(engine_fn): reshape the iii skill for on-demand reads#2012
rohitg00 wants to merge 4 commits into
mainfrom
docs/iii-skill-bundle

Conversation

@rohitg00

@rohitg00 rohitg00 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Problem

The registry iii skill (the engine's own knowledge bundle from engine/src/workers/engine_fn/skills/) is a 2.3k-word file whose frontmatter says "meant for system-prompt injection; do not re-fetch". That predates on-demand skills: the whole document lands in every prompt or nowhere, orientation and authoring and operating content arrive interleaved, and agents reading it for one question pay for all of it.

Change

One file, rewritten: a 530-word type: index overview shaped for directory::skills::get.

  • What iii is: the three primitives, agents-as-workers, how a call flows through the engine.
  • Extending: iii worker add, the in-mesh registry proxy, and the llms.txt route to per-language SDK reference pages, with the rule to never write SDK code from memory.
  • Operating: CLI, config.yaml hot-reload semantics, the configuration worker layer, console.
  • Where depth lives: live registry introspection first, per-worker skills through directory::skills::index/get, docs pages per topic, and the curated authoring catalog under skills/ for coding agents.

API signatures are delegated to the docs (fetched per page via the llms.txt index) rather than duplicated, so the skill does not rot when reference pages change. The type: index frontmatter matches the convention directory::skills::index selects on.

Verification

Run against .github/scripts/build_skills_payload.py: the file maps to the index.md payload key, landing on rigs as the iii namespace overview (id iii). Content claims were checked against a live engine this week: every function id named exists in the running registry, and https://iii.dev/docs/llms.txt returns 200 with per-page markdown reachable from it.

Publishing note: the skills publish workflow is dispatch-only, and the registry currently serves no iii entry, so rigs keep whatever bundle they downloaded last. A dispatch after merge restores it at the new shape.

Summary by CodeRabbit

  • Documentation
    • Reworked the skills documentation into a shorter, structured overview of Workers, Functions, Triggers, and Engine routing.
    • Simplified the call-flow explanation, including function identifiers and trigger binding shape.
    • Added operator-oriented guidance for extending and operating the system.
    • Updated references to live discovery endpoints and the documentation index.

The registry `iii` bundle was a 2.3k-word file whose frontmatter
declared it "meant for system-prompt injection; do not re-fetch". That
model predates on-demand skills: every token lands in every prompt or
none land anywhere, and orientation, authoring, and operating content
arrive interleaved.

Rewrite it as a 530-word `type: index` overview shaped for
directory::skills::get: what iii is and how a call flows, extending
(worker add, registry, the llms.txt route to per-language SDK
references), operating (CLI, config hot-reload, configuration worker,
console), and where every deeper reference lives (live registry
introspection, per-worker skills via directory::skills::index/get, docs
pages via llms.txt, the curated authoring catalog under skills/).

API signatures stay in the docs, fetched per page, rather than
duplicated here, so the skill does not rot when reference pages change.
Verified against build_skills_payload.py: the file maps to the index.md
payload key, landing on rigs as the `iii` namespace overview.
@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
iii-website Ready Ready Preview, Comment Jul 24, 2026 9:52am

Request Review

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

📝 Walkthrough

Walkthrough

SKILL.md was rewritten into a shorter overview covering the engine’s primitives, call flow, extension workflow, operations, and discovery resources.

Changes

Skill document rewrite

Layer / File(s) Summary
Architecture and call-flow overview
engine/src/workers/engine_fn/skills/SKILL.md
Updates metadata, replaces the four-primitive introduction with a condensed three-primitive model, and documents worker routing, function IDs, registries, crashes, and trigger bindings.
Extension, operation, and discovery guidance
engine/src/workers/engine_fn/skills/SKILL.md
Adds concise sections for adding workers, configuring and operating iii, and locating live discovery endpoints and deeper documentation.

Estimated code review effort: 1 (Trivial) | ~5 minutes

Suggested reviewers: guibeira

Poem

A rabbit trims the pages neat,
Three primitives hop in beat.
Workers route and triggers sing,
Operators guide the engine spring.
Shorter docs now burrow bright.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately summarizes the main change: reshaping the iii skill for on-demand reads.
Description check ✅ Passed The description covers the why, what, and notes/verification content the template asks for, even though it uses different section headings.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch docs/iii-skill-bundle

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@engine/src/workers/engine_fn/skills/SKILL.md`:
- Around line 17-20: Update the “Operating” section to accurately document
configuration-worker behavior: persisted live settings are stored under
./config/, worker settings in config.yaml are used only as the initial seed, and
direct edits under ./config/ hot-reload without an engine reload. State that
invalid direct edits are rejected and the previous valid value remains active,
while preserving the existing configuration::set and console editing paths.
- Around line 21-23: Update the “Where the depth lives” registry-discovery
guidance to mention that optional tags declared in each worker’s iii.worker.yaml
manifest are surfaced as discovery metadata. Place this detail alongside the
per-worker registry information, without changing the existing discovery
commands or documentation references.
- Around line 21-23: Update the curated authoring skills command in the “Where
the depth lives” section to invoke a reviewed, exact version of the skills CLI
rather than the unpinned `npx skills add` form. Preserve the existing repository
reference and intended `skills add` behavior while pinning the package version
explicitly.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f320b713-3a29-4d90-a2ce-cb65feabcd64

📥 Commits

Reviewing files that changed from the base of the PR and between 7405932 and a9669f7.

📒 Files selected for processing (1)
  • engine/src/workers/engine_fn/skills/SKILL.md

Comment thread engine/src/workers/engine_fn/skills/SKILL.md
Comment thread engine/src/workers/engine_fn/skills/SKILL.md
…n path

Agents on the mesh install workers by calling the worker::add function
with a registry source; iii worker add is the terminal form of the same
operation. The skill now leads with the function and names the CLI as
the human equivalent, so a mesh agent never reaches for a shell it does
not have.
… edit guarantees

config.yaml values are the initial seed only; live settings persist
under ./config/ (one file per worker), direct edits there hot-reload
without an engine reload, and an invalid edit is rejected with the
previous valid value staying in effect. Path verified against the fs
adapter default (./config, with ./data/configuration as the legacy
fallback).

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
engine/src/workers/engine_fn/skills/SKILL.md (1)

23-23: 🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

Pin the npx CLI version.

npx skills add ... can download and execute the latest package, so a compromised upstream release would run during authoring. Use an exact reviewed version, e.g. npx skills@<reviewed-version> add iii-hq/iii/skills.

As per path instructions, all PRs must be checked for supply-chain compromises and malicious code.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@engine/src/workers/engine_fn/skills/SKILL.md` at line 23, Update the curated
authoring skills command in the documentation to pin the npx skills CLI to an
exact reviewed version, using the existing “npx skills add iii-hq/iii/skills”
reference as the target. Preserve the repository and subcommand while replacing
the unpinned invocation, and ensure the selected version is explicitly reviewed
before publication.

Sources: Path instructions, Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Outside diff comments:
In `@engine/src/workers/engine_fn/skills/SKILL.md`:
- Line 23: Update the curated authoring skills command in the documentation to
pin the npx skills CLI to an exact reviewed version, using the existing “npx
skills add iii-hq/iii/skills” reference as the target. Preserve the repository
and subcommand while replacing the unpinned invocation, and ensure the selected
version is explicitly reviewed before publication.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ec3940ad-e085-4396-b11e-dd6637ace7e3

📥 Commits

Reviewing files that changed from the base of the PR and between a9669f7 and 6f7c06b.

📒 Files selected for processing (1)
  • engine/src/workers/engine_fn/skills/SKILL.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant