Generate + validate repo-pointer skills (repo- prefix), sourced from Forgejo #93

Closed
opened 2026-05-28 13:08:29 +00:00 by coilysiren · 0 comments
Owner

Repo-pointer skills (repo-<name>, coilysiren/agentic-os-kai#312) should be fully generated, not hand-authored, and validated so drift is impossible.

Add to the agentic_os package:

  • generate_repo_pointer_skill.py - pure renderer. Description = literal repo description (emoji stripped, em/en dashes normalized) + a Triggers - line built from the repo's topics; body = the fixed three-bullet README/AGENTS/FEATURES pointer block. Reads metadata from stdin JSON (--from-json), so the caller supplies it (canonical source: coily ops forgejo repo view --json).
  • Rework check_repo_pointer_skills.py into a prefix-driven, categories.yaml-independent pre-commit hook that regenerates each repo-* skill offline from its own frontmatter and fails on any drift (plus hygiene: no emoji, no em/en dash, a Triggers - line).
  • Drop the dead kind: repo shape path from validate_skills.py; repo-pointer skills are now owned by the dedicated hook (matched via a role: repo-pointer prefix category that skips generic shape checks).
Repo-pointer skills (`repo-<name>`, coilysiren/agentic-os-kai#312) should be fully generated, not hand-authored, and validated so drift is impossible. Add to the `agentic_os` package: - `generate_repo_pointer_skill.py` - pure renderer. Description = literal repo description (emoji stripped, em/en dashes normalized) + a `Triggers -` line built from the repo's topics; body = the fixed three-bullet README/AGENTS/FEATURES pointer block. Reads metadata from stdin JSON (`--from-json`), so the caller supplies it (canonical source: `coily ops forgejo repo view --json`). - Rework `check_repo_pointer_skills.py` into a prefix-driven, categories.yaml-independent pre-commit hook that regenerates each `repo-*` skill offline from its own frontmatter and fails on any drift (plus hygiene: no emoji, no em/en dash, a `Triggers -` line). - Drop the dead `kind: repo` shape path from `validate_skills.py`; repo-pointer skills are now owned by the dedicated hook (matched via a `role: repo-pointer` prefix category that skips generic shape checks).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
coilyco-flight-deck/agentic-os#93
No description provided.