feat(mcp): generic ObjectStack Agent Skill generator (ADR-0036 Phase 2b)#1628
Merged
Conversation
renderSkillMarkdown({ mcpUrl, envName }) produces a portable SKILL.md (open
Agent Skills standard — Claude Code/Codex/Gemini/Copilot/Cursor) teaching any
skills-capable agent to drive an ObjectStack env over MCP.
Per ADR-0036 Amendment C, ONE generic skill, not per-app:
- never enumerates schema (instructs live discovery via list_objects/
describe_object) → one install works for every app, new app = no reinstall;
- only the connection URL is env-specific, slotted by the caller;
- documents the object-CRUD tools, auth via x-api-key (Bearer = session), and
the permissions/RLS governance model.
Exports renderSkillMarkdown + skill name/description consts + RenderSkillOptions.
8 unit tests; full mcp suite 44 green; build incl DTS green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ADR-0036 Phase 2b (part 1) — the generic, portable ObjectStack Agent Skill generator.
renderSkillMarkdown({ mcpUrl, envName })emits aSKILL.md(the open Agent Skills standard — Claude Code, OpenAI Codex, Gemini CLI, Copilot, Cursor, …) that teaches any skills-capable agent how to drive an ObjectStack environment over MCP.Why this shape (ADR-0036 Amendment B/C)
list_objects/describe_object, so a newly built app needs zero reinstall.Contents of the skill
Connect (MCP URL +
x-api-keyauth — Bearer is session auth), discover-first instruction, the object-CRUD tool reference, and the governance model: every call runs under the caller's permissions + RLS — fewer rows / write rejections are expected, not bugs; confirm destructive ops.API
Exports
renderSkillMarkdown,OBJECTSTACK_SKILL_NAME,OBJECTSTACK_SKILL_DESCRIPTION,RenderSkillOptions.Tests (local)
skill.test.ts— 8 cases (valid frontmatter, URL slotting + placeholder fallback, env-name intro,x-api-key-not-Bearer, all 7 tools present + discover-first, generic/no-schema, URL trim). Full@objectstack/mcpsuite 44 green; build incl. DTS green.Next in Phase 2b (separate PRs)
sys_api_keyvia Phase 1a'sgenerateApiKey, store hash, return raw once.renderSkillMarkdown).🤖 Generated with Claude Code