Skip to content

feat: add AgentSkill for bi-directional anchor translation#132

Merged
rdmueller merged 3 commits into
LLM-Coding:mainfrom
musketyr:feature/agentskill-translator
Mar 7, 2026
Merged

feat: add AgentSkill for bi-directional anchor translation#132
rdmueller merged 3 commits into
LLM-Coding:mainfrom
musketyr:feature/agentskill-translator

Conversation

@musketyr

@musketyr musketyr commented Mar 4, 2026

Copy link
Copy Markdown

Summary

Adds a skill following the AgentSkills.io specification that enables AI agents to work bi-directionally with semantic anchors:

  1. Recognition mode: When users describe something verbosely, identify the precise semantic anchor term
  2. Guidance mode: When users ask for methodology/approach, suggest relevant anchors from the catalog

What's included

skill/semantic-anchor-translator/
├── SKILL.md                    # Main skill with frontmatter + instructions
└── references/
    └── catalog.md              # 50+ anchors organized by category

Compatibility

The skill follows the AgentSkills.io specification and works with:

  • Claude Code
  • OpenAI Codex
  • Cursor
  • Goose
  • And other skills-compatible agent products

Example usage

Recognition mode:

User: "I want to categorize things so they don't overlap and cover everything"
Agent: You're describing MECE Principle (Mutually Exclusive, Collectively Exhaustive).

Guidance mode:

User: "How should I document architecture decisions?"
Agent: For architecture decisions: ADR according to Nygard or MADR. Both provide lightweight templates for capturing context, decision, and consequences.

Why this matters

This makes the Semantic Anchors catalog practically useful for AI-assisted development — agents can now help users discover and apply the right terminology, improving communication precision.

Summary by CodeRabbit

  • Dokumentation

    • Neue Dokumentation für den Semantic Anchor Translator: Konzept, zwei Betriebsmodi (Erkennungsmodus, Anleitungsmodus), standardisiertes Antwortmuster, Quick‑Kategorieindex.
    • Umfangreicher, thematisch geordneter Referenzkatalog mit semantischen Ankern und zugehörigen Architektur-, Design-, Testing‑ und Planungsmethoden.
    • Ergänzende Anleitung in CLAUDE.md zur Synchronisation des AgentSkill‑Katalogs beim Hinzufügen neuer Anker.
  • Chores

    • Ergänzte Hinweise/Validierungsanweisungen in .coderabbit.yml zur Pflege und Prüfung des Anchor‑Katalogs.

Adds a skill following the AgentSkills.io specification that enables
agents to:
1. Recognize verbose descriptions and identify the semantic anchor term
2. Suggest relevant anchors when users ask for methodology/guidance

Includes:
- SKILL.md with frontmatter and instructions
- references/catalog.md with 50+ anchors organized by category

Compatible with Claude Code, Codex, Cursor, and other skills-compatible
agent products.
@coderabbitai

coderabbitai Bot commented Mar 4, 2026

Copy link
Copy Markdown
Contributor

Walkthrough

Drei Dokumentationsänderungen: neue Skill‑Dokumentation skill/semantic-anchor-translator/SKILL.md, neuer Referenzkatalog skill/semantic-anchor-translator/references/catalog.md und Ergänzungen in CLAUDE.md mit einem "⚠️ AgentSkill Sync Required"-Hinweis an zwei Stellen. Keine Ausführungslogik oder API‑Signaturen geändert.

Änderungen

Cohort / File(s) Summary
Semantic Anchor Translator — Hauptdoku
skill/semantic-anchor-translator/SKILL.md
Neue Skill‑Markdown: Meta‑Header, Konzeptübersicht, zwei Betriebsmodi (Recognition, Guidance), vorgeschriebenes Antwortmuster, optionale Rückfragen und Quick Category Index (8 Kategorien).
Semantic Anchor Translator — Katalog
skill/semantic-anchor-translator/references/catalog.md
Neuer ausführlicher Referenzkatalog mit thematischen Sektionen (Testing & Quality, Architecture, Design Principles, Problem‑Solving, Requirements, Communication, Documentation, Workflow, Statistical Methods, Strategic Planning) und detaillierten Anchor‑Einträgen.
Dokumentations‑Workflow / Validierungshinweis
CLAUDE.md, .coderabbit.yml
Einfügung eines "⚠️ AgentSkill Sync Required"-Guidance‑Blocks in CLAUDE.md (zweifach) und neue path_instructions in .coderabbit.yml mit Hinweis auf Synchronisation von docs/anchors/references/catalog.md und Validierungsanforderung.

Geschätzter Review‑Aufwand

🎯 2 (Einfach) | ⏱️ ~12 Minuten

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed Der PR-Titel 'feat: add AgentSkill for bi-directional anchor translation' beschreibt präzise die Hauptänderung: Ein neues AgentSkill für bidirektionale Ankertranslation wird hinzugefügt, was der Hinzufügung von SKILL.md und catalog.md sowie Dokumentation entspricht.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Comment @coderabbitai help to get the list of available commands and usage tips.

When adding new anchors, contributors must also update the
AgentSkill catalog to keep it in sync.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 2

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@skill/semantic-anchor-translator/references/catalog.md`:
- Around line 1-209: The file "Semantic Anchors Catalog" (catalog.md) is written
in Markdown but project policy requires AsciiDoc; convert the entire document to
AsciiDoc (rename to catalog.adoc), replacing Markdown headings (# → =, ## → ==,
### → ===), bold syntax (**Text** → *Text*), inline code/backticks → plain text,
convert links to AsciiDoc link: syntax (e.g.,
link:https://github.com/LLM-Coding/Semantic-Anchors[Semantic Anchors]) and keep
lists as hyphenated lists; ensure sections like "TDD, London School" and entries
(e.g., "Testing Pyramid", "Clean Architecture") preserve content and formatting,
and add a short comment or pragma to ignore the LanguageTool false-positive on
the line containing "Explain concept simply, identify gaps, refine
understanding" if required by your linter.

In `@skill/semantic-anchor-translator/SKILL.md`:
- Around line 1-69: The file SKILL.md is in Markdown with YAML frontmatter but
the project requires AsciiDoc; convert SKILL.md to SKILL.adoc by removing YAML
frontmatter and translating it to AsciiDoc document attributes (e.g., :name:,
:description:, :author:, :version:, :source:), convert Markdown headings (e.g.,
"# Semantic Anchor Translator", "## Two Modes", "### Recognition Mode") to
AsciiDoc heading syntax (==, ===, ====), convert bold/inline formatting and
blockquotes to AsciiDoc equivalents, rewrite the Markdown table under "Quick
Category Index" into AsciiDoc table syntax, update links like
"[references/catalog.md]" and external URLs to AsciiDoc link form, and ensure
any examples/blockquote lines follow AsciiDoc literal or quote conventions; keep
the same content and headings (Semantic Anchor Translator, Catalog Reference,
Quick Category Index) and save as .adoc.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: c5842a05-e32d-46ca-8cfc-b46de376b3c8

📥 Commits

Reviewing files that changed from the base of the PR and between 5fa2656 and dfffe26.

📒 Files selected for processing (2)
  • skill/semantic-anchor-translator/SKILL.md
  • skill/semantic-anchor-translator/references/catalog.md

Comment thread skill/semantic-anchor-translator/references/catalog.md
Comment thread skill/semantic-anchor-translator/SKILL.md

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@CLAUDE.md`:
- Around line 277-290: Der Abschnitt "⚠️ AgentSkill Sync Required" benutzt
Markdown (###, ```, - [ ]) und muss in AsciiDoc umgewandelt: ersetze die
Markdown-Überschrift durch die passende AsciiDoc-Überschrift für denselben
Titel, ersetze den gefenced codeblock um
"skill/semantic-anchor-translator/references/catalog.md" durch einen
AsciiDoc-Source-Block ([source,text] und ---- ... ----), konvertiere die
fettgedruckten/Listen-Elemente (**Checklist for new anchors:** und - [ ]) in
AsciiDoc-Notation (*Checklist for new anchors:* und * [ ] ...) und entferne die
```-Marken, sodass keine MD040-Codeblock-Warnung mehr auftritt; suche nach dem
Text "AgentSkill enables AI agents" und
"skill/semantic-anchor-translator/references/catalog.md" als Ankerpunkte zum
Patch.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: 3269fa6f-3772-4edf-83a7-edde7c1c4f07

📥 Commits

Reviewing files that changed from the base of the PR and between dfffe26 and 437d1d5.

📒 Files selected for processing (1)
  • CLAUDE.md

Comment thread CLAUDE.md
- Remind to update skill catalog when adding new anchors
- Add path instructions for skill/ directory

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (1)
.coderabbit.yml (1)

17-31: Sync-Regel und Pflichtfelder im selben Block vervollständigen.

Guter Zusatz, aber hier fehlen noch zwei wichtige Fälle:

  1. Der Katalog-Sync sollte auch Umbenennungen/Entfernungen abdecken.
  2. Bei den Pflichtfeldern fehlt :related:.
Vorgeschlagene Anpassung
-        Pflichtfelder: :categories:, :roles:, :proponents:
+        Pflichtfelder: :categories:, :roles:, :related:, :proponents:
@@
-        Wenn ein neuer Anchor hinzugefügt wird, muss auch
+        Wenn ein Anchor hinzugefügt, umbenannt oder entfernt wird, muss auch
         skill/semantic-anchor-translator/references/catalog.md
         aktualisiert werden, damit AI-Agenten den neuen Anchor erkennen können.

Based on learnings: Applies to docs/anchors/*.adoc : Each semantic anchor file must include AsciiDoc attributes for metadata: :categories:, :roles:, :related:, :proponents:, and optionally :tags:

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.coderabbit.yml around lines 17 - 31, Update the docs/anchors sync rules: in
the instructions block that applies to "docs/anchors/**/*.adoc" ensure the
Pflichtfelder list includes :related: (making the required attributes
:categories:, :roles:, :related:, :proponents: and optional :tags:), and extend
the catalog sync note for skill/semantic-anchor-translator/references/catalog.md
to explicitly handle not only additions but also renames and deletions so the
AgentSkill catalog stays in sync with renamed or removed anchor files.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In @.coderabbit.yml:
- Around line 17-31: Update the docs/anchors sync rules: in the instructions
block that applies to "docs/anchors/**/*.adoc" ensure the Pflichtfelder list
includes :related: (making the required attributes :categories:, :roles:,
:related:, :proponents: and optional :tags:), and extend the catalog sync note
for skill/semantic-anchor-translator/references/catalog.md to explicitly handle
not only additions but also renames and deletions so the AgentSkill catalog
stays in sync with renamed or removed anchor files.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: ed5b0c50-64f6-4563-9250-ad188c87436f

📥 Commits

Reviewing files that changed from the base of the PR and between 437d1d5 and f9dd7e8.

📒 Files selected for processing (1)
  • .coderabbit.yml

@rdmueller

Copy link
Copy Markdown
Member

hey! This is a cool skill! I will review it over the weekend...

@musketyr

musketyr commented Mar 6, 2026

Copy link
Copy Markdown
Author

Thanks @rdmueller! And this is a great opportunity for me to see coderabbit in action. It makes me wanting to try it myself!

@rdmueller

Copy link
Copy Markdown
Member

thanx. I will now merge the PR, but we also have to add some docs about the skill.

Regarding coderabbit: you can ask claude to install it for you or even use the https://llm-coding.github.io/vibe-coding-risk-radar/ skill (see the docs for details) to do it.

@rdmueller rdmueller merged commit aefa0b4 into LLM-Coding:main Mar 7, 2026
7 checks passed
@rdmueller

Copy link
Copy Markdown
Member

Would you like to post about this new skill on linkedIn? Then I can repost it.

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