Repository navigation
feat(skills): render full instructions in settings - #1158
Merged
Merged
Conversation
Owner
|
Thanks @tammelin, this is a nice, contained addition: read-only, loaded only for the selected skill, and the route's allow-list is the runtime loader's own skill list, so it cannot be used to read other Markdown files. What I checked on an isolated server: a skill with headings, a nested list, a table and a code block renders as in the chat; a skill with only frontmatter shows "This skill has no instructions."; Merged with current main (no conflicts): tsc, lint and the full test suite pass. Nothing else needed from you. |
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Next's route type check accepts only HTTP handlers and route config as exports, so next build failed on SKILL_CONTENT_MAX_BYTES. Co-Authored-By: Claude Opus 5.5 <[email protected]>
windli2018
pushed a commit
to aiti-ai/aiti-ai
that referenced
this pull request
Nov 6, 2026
* feat(skills): render full instructions in settings * style(skills): drop the box and background around skill instructions Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(skills): keep the content size limit out of the route's exports Next's route type check accepts only HTTP handlers and route config as exports, so next build failed on SKILL_CONTENT_MAX_BYTES. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Alex Yang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
windli2018
pushed a commit
to aiti-ai/aiti-ai
that referenced
this pull request
Nov 8, 2026
* feat(skills): render full instructions in settings * style(skills): drop the box and background around skill instructions Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(skills): keep the content size limit out of the route's exports Next's route type check accepts only HTTP handlers and route config as exports, so next build failed on SKILL_CONTENT_MAX_BYTES. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Alex Yang <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Problem
The Skills settings panel currently shows only a skill's name and frontmatter description. The actual instructions in the body of
SKILL.mdare not visible, so reviewing what an installed or project skill tells the agent to do requires locating and opening the file outside Pi Web.Changes
SKILL.mdbody with Pi Web's existing sanitized Markdown renderer, including headings, lists, tables, and code blocksScreenshot
Verification
npm run lint— passednpx tsc --noEmit— passednode --experimental-strip-types --test app/api/skills/content/route.test.mjs components/SkillsConfig.instructions.test.mjs— passednpm test— 2,850 passed, 1 skipped, and 1 unrelated environment-specific failure: the existing read-only-directory case inlib/rotate-preview-secrets.test.mjsruns as root in the local container, which can write throughchmod 0500