Skip to content

feat: add ai-skills solution and sync command - #227

Merged
jeff-schnitter merged 1 commit into
mainfrom
bradley/ai-skills-solution
Jul 27, 2026
Merged

feat: add ai-skills solution and sync command#227
jeff-schnitter merged 1 commit into
mainfrom
bradley/ai-skills-solution

Conversation

@BradleySauln

Copy link
Copy Markdown

Summary

Adds an ai-skills Cortex solution so orgs can catalog their AI plugins and skills (e.g. Claude Code plugins/Agent Skills) as first-class entities, alongside a new cortex ai-skills sync command to ingest real plugin directories.

  • New entity types: ai-plugin, ai-skill (with icons)
  • New relationship types: ai-plugin-skills (containment), ai-plugin-service / ai-skill-service (ownership — links back to an existing Cortex Service rather than duplicating owner data)
  • New scorecard ai-skills-quality — 8 rules covering ownership plus Anthropic's Agent Skills authoring best practices (concise SKILL.md, substantive descriptions, no reserved words, shallow references)
  • New cortex ai-skills sync -d <dir> [-s <service>] [--dry-run] — scans an eng-commons-style plugins directory and pushes live entities, relationships, and the scorecard's Custom Data fields (lineCount, descriptionCharCount, hasDeepReferences)
  • Generic, self-contained sample data in the solution's catalog/ (separate from any real customer data)

Test plan

  • All entity-types/relationship-types validated individually against a live tenant
  • Full cortex solutions install -s ai-skills run end-to-end — 0 failures
  • cortex ai-skills sync run against the real cortexapps/eng-commons repo — 3 plugins, 8 skills synced correctly with resolved relationships and scored quality data
  • Scorecard CQL expressions individually verified live (relationship checks, numeric/boolean Custom Data via jq/tonumber, tag regex)

Notes for @jeff-schnitter

  • Cortex Catalogs (the nav-level groupings like Services/Infrastructure) are UI-only today — no API/CLI support — so the README documents the manual step, same as the environments solution already does.
  • Found (but did not fix here) an unrelated pre-existing bug in entity_types.py:111 (update calls a nonexistent CortexClient.update method) — writing that up separately.

Comment thread cortexapps_cli/solutions/ai-skills/README.md Outdated
Comment thread cortexapps_cli/solutions/ai-skills/README.md Outdated
@jeff-schnitter

Copy link
Copy Markdown
Collaborator

@BradleySauln - if you remove the draft state from the PR, I will merge.

Adds ai-plugin and ai-skill entity types, ownership relationships back to
Cortex Services, and an 8-rule quality scorecard covering both ownership
and Anthropic's Agent Skills authoring best practices, packaged as the
ai-skills solution (cortex solutions install -s ai-skills).

Also adds `cortex ai-skills sync -d <dir>` to scan a real plugins
directory (eng-commons layout: <plugin>/.claude-plugin/plugin.json +
skills/*/SKILL.md) and push live ai-plugin/ai-skill entities,
relationships, and the scorecard's Custom Data fields (lineCount,
descriptionCharCount, hasDeepReferences) -- verified end-to-end against
the real eng-commons repo.
@BradleySauln
BradleySauln force-pushed the bradley/ai-skills-solution branch from 6a0d1a0 to c6f58c6 Compare July 27, 2026 19:48

@BradleySauln BradleySauln left a comment

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Made adjustments based on feedback from @jeff-schnitter

@jeff-schnitter
jeff-schnitter marked this pull request as ready for review July 27, 2026 19:55
@jeff-schnitter
jeff-schnitter requested a review from Cantaley as a code owner July 27, 2026 19:55
@jeff-schnitter
jeff-schnitter merged commit 89d2a0b into main Jul 27, 2026
4 checks 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.

2 participants