Skip to content

chore: remove the standalone afi-skills catalog surface - #8

Merged
Gio2050 merged 1 commit into
mainfrom
chore/remove-skills-surface
Jul 17, 2026
Merged

Gio2050 merged 1 commit into
mainfrom
chore/remove-skills-surface

Conversation

@Gio2050

@Gio2050 Gio2050 commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Summary

The Gateway authenticates and routes; it does not own or serve a manually curated agent skills catalog. This removes the file-backed reader of the deleted afi-skills repository and everything that existed only to expose it.

Removed

  • src/services/skillsService.ts — read ../afi-skills/manifest.json; the AFI_SKILLS_MANIFEST_PATH and AFI_SKILL_PLUGIN_MAP environment variables lived here.
  • Routes /api/v1/skills, /api/v1/skills/:id, /api/v1/skills/capabilities and their imports in src/http/app.ts (all three were backed solely by the removed manifest — no independent functionality).
  • tests/skills.test.ts — proved only the removed behavior.
  • Stale afi-skills references in src/index.ts comments and two docs.

Added

  • tests/guardrails/no-skills-surface.test.ts — makes reintroduction (sibling reader, env var, service module, route surface, CI checkout) structurally impossible. Modeled on the existing no-cli-framework guardrail.

Preserved (untouched)

Authentication, tenant/provider resolution, provider-to-strategy authorization, routing, honest error propagation, routes-not-writes, and the evidence-v2 boundary. No route was replaced with Factory capabilities, no tombstone/redirect was added, and the Gateway does not proxy Factory agent operations.

Verification

typecheck ✓ · build ✓ · test:guardrail ✓ · full suite 56/56 ✓ (the routing/boundary tests exercise the app, proving it constructs cleanly without the skills service).

🤖 Generated with Claude Code

The Gateway authenticates and routes; it does not own or serve a manually
curated agent skills catalog. Removes the file-backed reader of the deleted
afi-skills repository and everything that existed only to expose it.

Removed:
- src/services/skillsService.ts (read ../afi-skills/manifest.json; the
  AFI_SKILLS_MANIFEST_PATH / AFI_SKILL_PLUGIN_MAP env vars lived here).
- the /api/v1/skills, /api/v1/skills/:id, /api/v1/skills/capabilities routes
  and their imports in src/http/app.ts.
- tests/skills.test.ts (proved only the removed behavior).
- stale afi-skills references in src/index.ts comments and two docs.

Added tests/guardrails/no-skills-surface.test.ts to make reintroduction
(sibling reader, env var, service module, route surface, CI checkout)
structurally impossible.

Gateway's real boundary behavior is untouched: authentication, tenant/provider
resolution, provider-to-strategy authorization, routing, honest errors,
routes-not-writes, and the evidence-v2 boundary. build + typecheck + full test
suite (56/56) green.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@cursor

cursor Bot commented Jul 17, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@Gio2050
Gio2050 merged commit b43a0e1 into main Jul 17, 2026
1 of 2 checks passed
@Gio2050
Gio2050 deleted the chore/remove-skills-surface branch July 17, 2026 10:08
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