Skip to content

feat: add context agent skills endpoints and admin settings#594

Open
kyteinsky wants to merge 9 commits into
mainfrom
feat/context-agent-skills
Open

feat: add context agent skills endpoints and admin settings#594
kyteinsky wants to merge 9 commits into
mainfrom
feat/context-agent-skills

Conversation

@kyteinsky

@kyteinsky kyteinsky commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

related: nextcloud/context_agent#206

The folder selection dialog lists the current admin's files. Once selected, the path and the user id are stored. This screenshot is when the admin user was logged in and the folder was set from alice's filesystem.

image

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Assisted-by: Github Copilot: claude-sonnet-4-6
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Assisted-by: Github Copilot: claude-opus-4-7

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces “agent skills” management to the Assistant app: users can store and retrieve skills as folder-based SKILL.md files, and admins can optionally configure a global skills folder that becomes available to all users (in addition to personal skills).

Changes:

  • Added an admin UI section to configure/clear a global agent skills folder (stored as admin uid + path).
  • Introduced a backend AgentSkillsService plus an OCS API controller to list/load/store user skills (with YAML frontmatter parsing).
  • Updated routing, OpenAPI spec, and PHP dependencies (adds symfony/yaml) to support the new API.

Reviewed changes

Copilot reviewed 8 out of 9 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
src/components/AdminSettings.vue Adds “Global Agent Skills” admin UI with folder picker and persistence calls.
lib/Settings/Admin.php Extends admin initial-state to expose context-agent availability + global skills config to the UI.
lib/Service/AgentSkillsService.php New service to resolve skills folders, parse YAML frontmatter, cache metadata, and read/write SKILL.md.
lib/Controller/ConfigController.php Adds endpoint to set/clear the global skills folder configuration.
lib/Controller/AgentSkillsApiController.php New OCS controller exposing list/load/store skills endpoints.
appinfo/routes.php Registers new admin-config route and new OCS /skills endpoints.
openapi.json Documents the new /skills endpoints and schemas.
composer.json Adds symfony/yaml dependency required for frontmatter parsing.
composer.lock Locks new Symfony YAML-related packages.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/Controller/AgentSkillsApiController.php
Comment thread lib/Service/AgentSkillsService.php
Comment thread lib/Controller/AgentSkillsApiController.php
Comment thread lib/Controller/AgentSkillsApiController.php
Comment thread lib/Service/AgentSkillsService.php
kyteinsky added 2 commits July 8, 2026 19:49
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
Assisted-by: Github Copilot: claude-sonnet-4-6
@kyteinsky kyteinsky force-pushed the feat/context-agent-skills branch from 48fa80f to a94139c Compare July 8, 2026 14:21
@kyteinsky kyteinsky force-pushed the feat/context-agent-skills branch from a94139c to 1e9025c Compare July 8, 2026 14:24
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
@marcelklehr marcelklehr requested a review from Copilot July 9, 2026 09:12
Comment thread lib/Service/AgentSkillsService.php

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 11 changed files in this pull request and generated 4 comments.

Comment thread lib/Service/AgentSkillsService.php Outdated
Comment thread openapi.json Outdated
Comment thread openapi.json Outdated
Comment thread .github/workflows/phpunit.yml
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
@kyteinsky kyteinsky force-pushed the feat/context-agent-skills branch from 48a73e9 to 066886c Compare July 9, 2026 10:13
Signed-off-by: kyteinsky <kyteinsky@gmail.com>
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.

3 participants