feat(skills): agent settings Skills tab with uninstall and archive/chat import (#179)

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Yaowei ZhengandClaude Fable 5 authored and GitHub committed 2026-08-04 20:20:07 +08:00
1 parent d89bfddc7a
commit 7cc5c30e71
13 files changed
+1141 -12

No files matched your search

+2 -2
View File
@@ -89,8 +89,8 @@ export function parseSkillFrontmatter(content: string): SkillMetadata | null {
/** Root directory of library files: the package's `skills/` (both dist/ and src/ sit one level below the package root, so one level up reaches it). */
const SKILLS_ROOT = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..", "skills");
/** Character rule for Skill names (directory names): prevents path traversal. */
const SKILL_NAME_PATTERN = /^[A-Za-z0-9_-]+$/;
/** Character rule for Skill names (directory names): prevents path traversal (exported for the server's archive-install validation). */
export const SKILL_NAME_PATTERN = /^[A-Za-z0-9_-]+$/;
/**
* Reads a single library directory to construct a LibrarySkill; returns undefined if SKILL.md