⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
vibetags-usage
This skill should be used when the user asks how to "use VibeTags", "add VibeTags annotations", "set up AI guardrails", "protect code from AI", "configure AI platforms", asks about @AILocked, @AIContext, @AIDraft, @AIAudit, @AIIgnore, @AIPrivacy, @AICore, @AIPerformance, @AIContract, @AITestDriven, @AIThreadSafe, @AIImmutable, @AIDeprecated, @AIObservability, @AIRegulation, @AIArchitecture, @AILegacyBridge, @AIStrictClasspath, @AIInternationalized, @AIPublicAPI, @AISchemaSafe, @AIStrictExceptions, @AIStrictTypes, @AIParallelTests, @AIIdempotent, @AIFeatureFlag, @AISecure, @AICallersOnly, @AISandboxOnly, @AIMemoryBudget, @AIPure, @AIDomainModel, @AIExtensible, @AIInputSanitized, @AISecureLogging, @AIExplain, @AIPrototype, @AISunset, @AITemporary annotations, or wants to control how AI tools interact with Java code.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
Skill3 — a fully local AI Skill Relearner
A real, fully-offline
learnrun over a made-up corpus (examples/demo-corpus.txt). Recorded from the real run bydocs/record-demo.py(asciicast +agg); the idle synthesis wait is time-compressed. A VHS recipe is indocs/demo.tape.
Skill3 is a lightweight Java CLI that relearns a technical skill for an AI
agent. It discovers documentation sources, scores them for authority and
freshness (anchored to a target model's knowledge cutoff), synthesizes them
with a local LLM into an Agent Skills SKILL.md, and vets the result with
NVIDIA's SkillSpector.
The point: a model only knows what existed before its training cutoff. Skill3 gathers what changed after that cutoff and bakes it into a skill the agent can load — so it stops emitting deprecated patterns.
- General — no skill is hardcoded; the model plans the searches and freshness is driven by a cutoff date, so it works for any topic (technical or not).
- Delta, not primer — a generated skill covers only what changed after the cutoff and tells the model to rely on existing knowledge for the rest.
- Local-first — by default synthesis runs on a local LLM (Ollama), so the only external service is discovery (Brave Search). A hosted provider (any OpenAI-compatible gateway, or Claude via the native SDK) is opt-in.
- Cutoff-anchored — the discovery window is bounded by the target model's cutoff (below) and today (above), so results are the slice the model doesn't already know.
- Quality-gated — the build runs Error Prone, PMD, SpotBugs and ArchUnit, and ships compile-time AI guardrails via VibeTags.
See docs/SPEC.md for the full specification, docs/ARCHITECTURE.md for the design, and docs/PLAN.md for the roadmap.
What is a knowledge cutoff — and why it's the whole idea
A large language model is trained on a snapshot of the world that ends on a fixed date: its knowledge cutoff. Everything before that date the model may know; everything after it the model has simply never seen. Claude Opus 4.8, for example, has a cutoff of January 2026 — ask it about anything from February 2026 onward and it will either say it doesn't know, or (worse) confidently answer using stale, pre-cutoff information.
The cutoff is not a bug to be patched; it's a hard property of how the model was trained. You can't retrain the model, but you can hand it the missing slice of the world at runtime. That is the entire premise of Skill3:
Take a topic and a model's cutoff date, gather only what changed after that date, and compile it into a
SKILL.mdthe agent loads — so it answers from current reality instead of stale memory.
Concretely, the cutoff date drives a date-bounded web search: discovery starts at the
cutoff and ends today (2026-01-01to<today>), so the pipeline spends its effort on
material the model could not possibly already know, rather than re-summarising what it
learned in training. Everything else — authority scoring, freshness ranking, local
synthesis, vetting — exists to turn that fresh slice into something an agent can trust.
This works for any topic, not just code (see the examples — a software protocol and current events). The cutoff is the dial; the skill is the output.
Why it matters: MCP versioning
The cleanest illustration of the problem Skill3 solves is the Model Context Protocol.
MCP revisions are date-versioned (2024-11-05 → 2025-03-26 → 2025-06-18), and the
changes between them are not backward-compatible: a new HTTP transport, a required
MCP-Protocol-Version header, removed JSON-RPC batching, new primitives like elicitation.
A model trained before mid-2025 confidently emits the old protocol — wrong transport, missing header, assumptions that silently break real integrations. That's exactly the post-cutoff drift Skill3 targets: anchor discovery at the model's cutoff, pull what changed since, and bake it into a skill the agent loads.
See the generated example: examples/SKILL-mcp.md — an MCP skill
centred on protocol versioning and revision negotiation.
The pipeline: plan → Brave → synthesize → (verify) → vet
Skill3 is a linear pipeline (LearnPipeline). The synthesis model (local Ollama by
default, or a hosted provider) is used at four points — to plan the searches, to
synthesize the skill, optionally to verify it, and to revise it during
vetting. Brave does discovery and SkillSpector does safety vetting.
┌──────── Phase 0: Plan (model) ─────────┐
topic + cutoff ► QueryPlanner → N post-cutoff queries │ topic-agnostic; no per-topic logic
└──────────────────┬─────────────────────┘
▼
┌──────────── Phase 1: Discovery & Retrieval ─────────────┐
per query ─► Brave Search ─► fetch pages (parallel) ─► extract dates ─► score authority
└───────────────────────────────────────────┬───────────┘
▼
┌──────────────── Phase 2: Ranking ──────────────┐
│ consensus (prune lonely code blocks) │ ranked ContextBundle
│ freshness: cutoff ≤ published ≤ today │ (future-dated dropped)
│ authoritative hosts ranked first │
└──────────────────────────────┬─────────────────┘
▼
┌──────── Phase 3: Synthesis (model) ────────┐
│ model drafts a post-cutoff DELTA │ ← post-processor, not the model,
│ deterministic post-processor guarantees │ guarantees the frontmatter
│ spec-compliant frontmatter + footer │
└──────────────────────┬─────────────────────┘
▼
┌──── Phase 3b: Verify (model, --verify) ────┐
│ re-ground each claim against the sources; │ optional accuracy gate
│ demote future-dated releases to "planned" │
└──────────────────────┬─────────────────────┘
▼
┌──────── Phase 4: Vetting (SkillSpector) ────┐
│ static scan → findings │
│ self-correction loop revises (bounded) │
└──────────────────────┬─────────────────────┘
▼
skills/<topic>/SKILL.md (+ index.html preview)
| Stage | Component | Where | Notes | |---|---|--
// HOW IT'S BUILT
// FILES
2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
.claude/skills/vibetags-usage/SKILL.md45 KB9b348582cf69truncatedupstream ↗
Showing the inlined prefix. The rest is in the upstream file.
--- name: vibetags-usage description: This skill should be used when the user asks how to "use VibeTags", "add VibeTags annotations", "set up AI guardrails", "protect code from AI", "configure AI platforms", asks about @AILocked, @AIContext, @AIDraft, @AIAudit, @AIIgnore, @AIPrivacy, @AICore, @AIPerformance, @AIContract, @AITestDriven, @AIThreadSafe, @AIImmutable, @AIDeprecated, @AIObservability, @AIRegulation, @AIArchitecture, @AILegacyBridge, @AIStrictClasspath, @AIInternationalized, @AIPublicAPI, @AISchemaSafe, @AIStrictExceptions, @AIStrictTypes, @AIParallelTests, @AIIdempotent, @AIFeatureFlag, @AISecure, @AICallersOnly, @AISandboxOnly, @AIMemoryBudget, @AIPure, @AIDomainModel, @AIExtensible, @AIInputSanitized, @AISecureLogging, @AIExplain, @AIPrototype, @AISunset, @AITemporary annotations, or wants to control how AI tools interact with Java code. version: 1.0.0-RC1 --- # VibeTags Usage Guide VibeTags is a **compile-time Java annotation processor** that generates AI platform-specific guardrail files from source annotations. Zero runtime overhead — all annotations have `RetentionPolicy.SOURCE`. ## Quick Setup ### 1. Add the dependency **Maven** (`provided` scope — compile-only): ```xml <dependency> <groupId>se.deversity.vibetags</groupId> <artifactId>vibetags-processor</artifactId> <version>1.0.0-RC1</version> <scope>provided</scope> </dependency> ``` **Gradle:** ```groovy compileOnly 'se.deversity.vibetags:vibetags-processor:1.0.0-RC1' annotationProcessor 'se.deversity.vibetags:vibetags-processor:1.0.0-RC1' ``` ### 2. Opt in to AI platforms (file-presence model) VibeTags **never creates files** — it only updates files that already exist. Create empty placeholder files for each platform you want to support: ```bash touch CLAUDE.md .claudeignore # Claude / Claude Code touch .cursorrules .cursorignore # Cursor (traditional) mkdir -p .cursor/rules # Cursor (granular per-class rules) mkdir -p .trae/rules # Trae (granular per-class rules) mkdir -p .roo/rules # Roo Code (per-class rules) touch CONVENTIONS.md .aiderignore # Aider touch QWEN.md .qwenignore # Qwen touch .aiexclude gemini_instructions.md GEMINI.md # Gemini touch AGENTS.md # Codex CLI mkdir -p .github && touch .github/copilot-instructions.md .copilotignore # Copilot touch llms.txt llms-full.txt # Windsurf Cascade / llms.txt standard touch .windsurfrules # Windsurf IDE (traditional) mkdir -p .windsurf/rules # Windsurf IDE (granular per-class rules) touch .rules # Zed Editor mkdir -p .cody && touch .cody/config.json .codyignore # Sourcegraph Cody touch .supermavenignore # Supermaven mkdir -p .continue/rules # Continue (granular per-class rules) mkdir -p .tabnine/guidelines # Tabnine (granular per-class rules) mkdir -p .amazonq/rules # Amazon Q (granular per-class rules) mkdir -p .ai/rules # Universal AI standard (granular) mkdir -p .pearai/rules # PearAI (granular per-class rules) touch .mentatconfig.json # Mentat touch sweep.yaml # Sweep (GitHub App) touch .plandex.yaml # Plandex touch .doubleignore # Double.bot mkdir -p .interpreter/profiles && touch .interpreter/profiles/vibetags.yaml # Open Interpreter touch .codeiumignore # Codeium touch GEMINI.md # Gemini (official markdown) touch .antigravityignore # Antigravity AI touch .clinerules # Cline AI assistant mkdir -p .junie && touch .junie/guidelines.md # JetBrains Junie mkdir -p .kiro/steering # Amazon Kiro (granular per-class rules) touch DESIGN.md # AI design agents (Cursor, Claude, Copilot, etc.) ``` To remove a platform: delete its file — VibeTags will never recreate it. ### 3. Annotate your Java code ```java import se.deversity.vibetags.annotations.*; ``` ### 4. Compile — guardrails are generated automatically ```bash mvn clean compile # or: gradle clean build ``` --- ## Annotations Reference ### `@AILocked` — Protect critical code from modification Use on: **class, method, field** ```java @AILocked(reason = "Tied to legacy database schema v2.3. Any change breaks production payment flow.") public interface PaymentProcessor { String processPayment(double amount, String currency, String merchantId); } ``` When to use: legacy integrations, compliance-regulated code (PCI-DSS, HIPAA), algorithms that took months to stabilize. --- ### `@AIContext` — Guide AI behavior for a class or method Use on: **class, method** ```java @AIContext( focus = "Optimize for memory usage over CPU speed", avoids = "java.util.regex, String.split(), StringBuilder in loops" ) public class StringParser { ... } ``` Use `focus` to tell AI what to optimize for; use `avoids` to list libraries, patterns, or constructs it should not introduce. --- ### `@AIDraft` — Request an AI implementation Use on: **class, method** ```java @AIDraft(instructions = "Implement email sending via SMTP and push notifications via FCM. Include retry logic and rate limiting.") public class NotificationService { public void sendNotification(String userId, String message) { // AI implements this } } ``` Tip: `@AIDraft` and `@AILocked` on the same element produce a compile-time warning — they are contradictory. --- ### `@AIAudit` — Require continuous security auditing Use on: **class, method** ```java @AIAudit(checkFor = {"SQL Injection", "Thread Safety issues", "Path Traversal"}) public class DatabaseConnector { ... } ``` Every time an AI tool modifies tagged code it must explicitly state it audited the changes for each listed vulnerability. Common values for `checkFor`: `"SQL Injection"`, `"XSS"`, `"CSRF"`, `"Command Injection"`, `"Thread Safety issues"`, `"Insecure Deserialization"`, `"Authentication Bypass"`. Empty `checkFor` array produces a compile-time warning and is ignored. --- ### `@AIIgnore` — Exclude from AI context entirely Use on: **class, method, field** ```java @AIIgnore(reason = "Auto-generated at build time. Manual edits are overwritten on every build.") public class GeneratedMetadata { ... } ``` Unlike `@AILocked` (visible but immutable), `@AIIgnore` tells AI to treat the element as if it does not exist. Use for: generated code, deprecated scaffolding, internal plumbing. --- ### `@AIPrivacy` — Protect PII fields and methods Use on: **class, method, field** ```java public class UserRepository { @AIPrivacy(reason = "GDPR - never log or include in error messages, test fixtures, or mock data") private final String email; @AIPrivacy(reason = "PCI-DSS - must not appear in logs, console output, or external API calls") private final String creditCardToken; } ``` AI remains aware the element exists (for code assistance) but must never reproduce its runtime values in logs, suggestions, test fixtures, mock data, or external API calls. Using `@AIPrivacy` together with `@AIIgnore` on the same element produces a compile-time warning (redundant — `@AIIgnore` already excludes the element). --- ### `@AICore` — Mark sensitive core logic Use on: **class, method, field** ```java @AICore( sensitivity = "Critical", note = "Core transaction engine. Well-tested. Changes require user approval." ) public class TransactionEngine { ... } ``` Use `sensitivity` (default `"High"`) to indicate impact level, and `note` to provide specific warnings. AI will treat changes with extreme caution and must not refactor without explicit approval. --- ### `@AIPerformance` — Enforce complexity constraints Use on: **class, method** `README.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/pisberg-skill3-claude-skills-vibetags-usage.md