[PR #1144] [CLOSED] serve: add opt-in instruction skills to Chat #3057

Closed
opened 2026-11-04 02:05:17 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/1144
Author: @medking82
Created: 10/6/2026
Status: ❌ Closed

Base: main ← Head: codex/instruction-skills-20261006


📝 Commits (1)

  • f3a22f9 serve: add opt-in instruction skills to Chat

📊 Changes

9 files changed (+996 additions, -22 deletions)

View changed files

📝 docs/DETAILS.md (+63 -0)
📝 serve/server.py (+84 -19)
➕ serve/skills.py (+108 -0)
➕ serve/test_skills.py (+338 -0)
📝 serve/web/app.css (+24 -1)
📝 serve/web/app.js (+15 -2)
📝 serve/web/index.html (+2 -0)
➕ serve/web/skill-controls.js (+160 -0)
➕ serve/web/test_skill_controls.js (+202 -0)

📄 Description

Chat can use configured MCP tools, but it has no way to discover and choose an instruction skill for the current request. This adds an opt-in / Skills picker: /outline can load its instructions for that user turn while preserving the draft, attachments and earlier conversation.

The operator binds two existing MCP tools for catalog metadata and on-demand content. This is a documented adapter convention, not a standard MCP Skills API. The feature is disabled without configuration and ships no catalog, filesystem scanning or workflow runner.

  • Keyboard and pointer selection; ordinary and unknown slash input remain plain messages.
  • Only an explicit current-user selection reads a body. Catalog membership, identity, UTF-8 size and complete adapter results are validated before model dispatch; existing MCP admission and cancellation apply.
  • A text-only Chat Completions count endpoint shares input preparation with generation, including selected instructions and offered tools. It does not load the model and refuses image requests.

No dependencies, engine changes, persistent schema, account policy, provider routing or bundled SOP are included. Draft for feedback on the operator-facing catalog/read binding before treating it as a stable integration contract.

Validation:

  • 24 focused Python unit/HTTP checks, including actual disconnect cancellation, stale membership, bounds, origin/API-key admission and count/generation parity.
  • 300 affected upstream Python checks: server, security, frontend, MCP, structured output, Responses and runconfig.
  • 14 Node checks for the mounted picker and actual composer handlers, including cancelled/stale requests, literal metadata, multiline drafts and an instruction-only MCP adapter.
  • Desktop browser exercise with a synthetic catalog and MockEngine: pointer and keyboard selection, Escape, retained draft, successful submission and disabled configuration. No real model, provider or production deployment was used.
  • git diff --check.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/1144 **Author:** [@medking82](https://github.com/medking82) **Created:** 10/6/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `codex/instruction-skills-20261006` --- ### 📝 Commits (1) - [`f3a22f9`](https://github.com/Niko1221/Strata/commit/f3a22f9fc0178613fc54ee18fd8d7c1765160de7) serve: add opt-in instruction skills to Chat ### 📊 Changes **9 files changed** (+996 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `docs/DETAILS.md` (+63 -0) 📝 `serve/server.py` (+84 -19) ➕ `serve/skills.py` (+108 -0) ➕ `serve/test_skills.py` (+338 -0) 📝 `serve/web/app.css` (+24 -1) 📝 `serve/web/app.js` (+15 -2) 📝 `serve/web/index.html` (+2 -0) ➕ `serve/web/skill-controls.js` (+160 -0) ➕ `serve/web/test_skill_controls.js` (+202 -0) </details> ### 📄 Description Chat can use configured MCP tools, but it has no way to discover and choose an instruction skill for the current request. This adds an opt-in `/ Skills` picker: `/outline` can load its instructions for that user turn while preserving the draft, attachments and earlier conversation. The operator binds two existing MCP tools for catalog metadata and on-demand content. This is a documented adapter convention, not a standard MCP Skills API. The feature is disabled without configuration and ships no catalog, filesystem scanning or workflow runner. - Keyboard and pointer selection; ordinary and unknown slash input remain plain messages. - Only an explicit current-user selection reads a body. Catalog membership, identity, UTF-8 size and complete adapter results are validated before model dispatch; existing MCP admission and cancellation apply. - A text-only Chat Completions count endpoint shares input preparation with generation, including selected instructions and offered tools. It does not load the model and refuses image requests. No dependencies, engine changes, persistent schema, account policy, provider routing or bundled SOP are included. Draft for feedback on the operator-facing catalog/read binding before treating it as a stable integration contract. Validation: - 24 focused Python unit/HTTP checks, including actual disconnect cancellation, stale membership, bounds, origin/API-key admission and count/generation parity. - 300 affected upstream Python checks: server, security, frontend, MCP, structured output, Responses and runconfig. - 14 Node checks for the mounted picker and actual composer handlers, including cancelled/stale requests, literal metadata, multiline drafts and an instruction-only MCP adapter. - Desktop browser exercise with a synthetic catalog and MockEngine: pointer and keyboard selection, Escape, retained draft, successful submission and disabled configuration. No real model, provider or production deployment was used. - `git diff --check`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:05:17 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#3057
No description provided.