Skip to content

feat: Skills Abstraction (Phase 2)#4

Merged
rogerchappel merged 6 commits into
mainfrom
feature/skills-abstraction
Apr 1, 2026
Merged

feat: Skills Abstraction (Phase 2)#4
rogerchappel merged 6 commits into
mainfrom
feature/skills-abstraction

Conversation

@rogerchappel
Copy link
Copy Markdown
Owner

Summary

Adds the skills layer to the provider+skills architecture. Agents now have installable skills (Claude Code, Codex, GitHub, etc.) that determine their capabilities.

Changes (6 commits)

Built-in Skills Registry

  • src/lib/skills/built-in.ts: 10 built-in execution skills with provider compatibility
  • Claude Code (Anthropic), Codex (OpenAI), Gemini CLI (Google), OpenCode (any), Cursor (any), Pi (any), GitHub (any), Web Browse (any), File System (any), Shell (any)

API

  • GET /api/skills now merges built-in skills with company custom skills
  • Built-ins always returned even without DB

Agent Config UI

  • Skills section with checkbox grid in agent config
  • Filtered by compatible provider when provider is set
  • Shows icon + name + description per skill

Agent Cards

  • Installed skills shown as badge chips on agent cards in the agents list

Execution Engine

  • Start/status endpoints now resolve execution adapter from installed CLI skills
  • Maps skill slugs back to adapter types (claude-code→claude_local, etc.)
  • Falls back to adapter_type if no skills installed (backward compatible)

Migration

  • scripts/migrate-skills-from-adapter.ts: maps existing adapter_type to skill entries

Not Changed

  • Existing adapter system still works as fallback
  • No breaking changes
  • Phase 3 (skill marketplace) tracked in design doc

rogerchappel and others added 6 commits April 1, 2026 10:32
Define 10 built-in skills (claude-code, codex, opencode, gemini-cli,
cursor, pi, github, web-browse, file-system, shell) with category,
runtime, and provider compatibility metadata.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Built-in skills are returned with source='built-in' alongside company
custom skills, ensuring they're always available even without DB rows.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Fetch each agent's skills and render them as small icon+name pills
on the agent card. Skills are fetched in parallel on page load and
every 15s refresh cycle.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Creates scripts/migrate-skills-from-adapter.ts that reads agents with
adapter_type set and creates corresponding built-in skill records and
agent_skills entries. Maps claude_local→claude-code, codex_local→codex,
gemini_local→gemini-cli, opencode_local→opencode, cursor→cursor,
pi_local→pi. Copies cwd/command from adapter_config into skill config.
Fully idempotent — skips existing links.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Skills section now fetches available skills from GET /api/skills,
displays them in a categorized 2-column grid with icons and
descriptions, and filters by compatibleProviders when agent has
a provider set. Checked skills show a cyan highlight. Built-in
skills now appear alongside custom company skills.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds src/lib/resolve-adapter-from-skills.ts which checks an agent's
enabled skills to determine the execution adapter (e.g. claude-code
skill → claude_local adapter). Falls back to adapter_type if no CLI
skills are installed.

Updates both start and task routes to use skill-based resolution,
keeping full backward compatibility with adapter_type.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@rogerchappel rogerchappel merged commit 91731d2 into main Apr 1, 2026
1 check passed
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