agentleFS
PIsbergPIsberg/skill3/CLAUDE.md

skill3

CLAUDE.md6 starsChanged 3 months agoApache-2.0View on GitHub

Java 25 CLI that relearns a technical skill for an AI agent: it discovers documentation, scores it for authority and freshness against a target model's knowledge cutoff, synthesizes an Agent Skills SKILL.md with an LLM, and vets both the input corpus and the output skill with NVIDIA SkillSpector. 1. A skill is a post-cutoff delta, not a primer. The target model already knows the topic up to its cutoff; the pipeline gathers only what changed after it. Re-explaining known fundamentals…

The file

We split this CLAUDE.md into the rules it gives an agent

2 rules. About 0 are common, 2 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈2

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Absence of findings is never asserted: When SkillSpector is unavailable the scans are skipped and nothing is gated — "not scanned" must …

    line 55
  2. Distinctive:

    Never include runtime values of elements listed in <pii_guardrails> in logs, console output, external API calls, test fixtures, mock data, …

    line 75

≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
CLAUDE.md

Skill3 — agent briefing

Java 25 CLI that relearns a technical skill for an AI agent: it discovers documentation, scores it for authority and freshness against a target model's knowledge cutoff, synthesizes an Agent Skills SKILL.md with an LLM, and vets both the input corpus and the output skill with NVIDIA SkillSpector.

The two invariants everything else serves

  1. A skill is a post-cutoff delta, not a primer. The target model already knows the topic up to its cutoff; the pipeline gathers only what changed after it. Re-explaining known fundamentals wastes the whole mechanism.
  2. Discovery is topic-agnostic. The model plans the searches. There is no per-topic logic anywhere, and adding some — a hardcoded query suffix, a per-skill branch — is the most common way to break this project without failing a test.

Where things are

I need…Read
What it does, flag by flagdocs/USAGE.md
Install, keys, builddocs/INSTALL.md
How it is structured, and whydocs/ARCHITECTURE.md
The full behavioural specdocs/SPEC.md
Build gates, releases, guardrailsdocs/DEVELOPMENT.md
Generated structure diagramsdocs/diagrams/
Roadmapdocs/PLAN.md

Working on it

./gradlew build          # compile + test + Error Prone, PMD, SpotBugs, ArchUnit, JaCoCo gate
./gradlew test           # tests only
./gradlew diagrams       # regenerate docs/diagrams/*.svg from the source
./gradlew run --args="learn --help"

The build runs on a Gradle-provisioned JDK 25 toolchain, so it does not depend on JAVA_HOME. Coverage is gated at 75% instruction / 65% branch.

Things that will bite you

  • Never hand-edit between <!-- VIBETAGS-START --> and <!-- VIBETAGS-END --> in this file, llms.txt or llms-full.txt. Every compile rewrites that region from the @AI* annotations in the Java source. Text outside the markers — including everything above — survives. To change a guardrail, change the annotation.
  • The guardrails below are the safety tier only. Per-element detail lives in .claude/rules/ and loads when you open a matching source file.
  • Layering is enforced, not suggested. An ArchUnit test asserts that model depends on nothing internal, that only Skill3App touches cli, and that the sub-packages stay acyclic. A convenient import in model fails the build.
  • Untrusted data has a defined path. Scraped pages and --input-file content are secret-redacted and scanned before synthesis, fenced as DATA in the prompt, and the output is scanned again. Do not add a shortcut that reaches the model earlier.
  • Absence of findings is never asserted. When SkillSpector is unavailable the scans are skipped and nothing is gated — "not scanned" must never be reported as "clean".

Generated guardrails

Everything below is regenerated from source annotations on every compile.

<!-- VIBETAGS-START --><!-- # Generated by VibeTags | https://github.com/PIsberg/vibetags -->

<project_guardrails> <pii_guardrails> <element path="se.deversity.skill3.llm.LocalLlmClient.apiKey"> <reason>LLM provider API key — never log, echo, or include in errors/fixtures</reason> </element> <element path="se.deversity.skill3.pipeline.BraveSearchClient.apiKey"> <reason>Brave Search subscription token — never log, echo, or include in errors/fixtures</reason> </element> </pii_guardrails>

<rule> Never include runtime values of elements listed in <pii_guardrails> in logs, console output, external API calls, test fixtures, mock data, or code suggestions. Treat their values as strictly confidential. </rule> <core_elements> <element path="se.deversity.skill3.llm.SkillMdPostProcessor"> <sensitivity>High</sensitivity> <note>Deterministically guarantees SKILL.md spec compliance; model output is never trusted. Changes risk emitting invalid frontmatter — keep the parsing and frontmatter synthesis covered by SkillMdPostProcessorTest.</note> </element> <element path="se.deversity.skill3.llm.Verifier"> <sensitivity>High</sensitivity> <note>Accuracy gate that re-grounds claims against the sources. Only worthwhile with a capable model — a weak model rewrites rather than grounds. Keep the prompt strict about supported-claims-only and announced-vs-shipped.</note> </element> </core_elements>

<rule>Elements listed in <core_elements> are well-tested core components. Make changes with extreme caution and verify comprehensive test coverage before proposing modifications.</rule> <security_elements> <element path="se.deversity.skill3.llm.AnthropicChatModel"> <aspect>Anthropic API credential handling and hosted-provider network egress</aspect> </element> <element path="se.deversity.skill3.llm.LlmProviderFactory"> <aspect>LLM provider credential resolution and model selection</aspect> </element> <element path="se.deversity.skill3.llm.LocalLlmClient"> <aspect>outbound LLM-provider credential (Bearer token) handling</aspect> </element> <element path="se.deversity.skill3.llm.NameSanitizer"> <aspect>output sanitization: reserved-word stripping must never be weakened</aspect> </element> <element path="se.deversity.skill3.pipeline.BraveSearchClient"> <aspect>external-API credential handling and the only network egress with a secret token</aspect> </element> <element path="se.deversity.skill3.pipeline.DiscoveryProvider"> <aspect>forwards the Brave subscription token to the search client; must not log it</aspect> </element> <element path="se.deversity.skill3.pipeline.HttpPageFetcher"> <aspect>outbound page fetch egress for partly-untrusted URLs; SSRF guard must not be weakened</aspect> </element> </security_elements>

<rule>Elements listed in <security_elements> are security-critical. Never weaken their security properties. Every proposed change must be explicitly reviewed for security impact.</rule> <scoped_rules> <note>Detailed per-element guardrails for the elements below live in scoped rule files that load automatically when the matching source file is opened. Consult the referenced file before modifying an element.</note> <element path="se.deversity.skill3.llm.AnthropicChatModel" rules=".claude/rules/se-deversity-skill3-llm-AnthropicChatModel.md"/> <element path="se.deversity.skill3.llm.ChatModel" rules=".claude/rules/se-deversity-skill3-llm-ChatModel.md"/> <element path="se.deversity.skill3.llm.LlmProviderFactory" rules=".claude/rules/se-deversity-skill3-llm-LlmProviderFactory.md"/> <element path="se.deversity.skill3.llm.LocalLlmClient" rules=".claude/rules/se-deversity-skill3-llm-LocalLlmClient.md"/> <element path="se.deversity.skill3.llm.NameSanitizer" rules=".claude/rules/se-deversity-skill3-llm-NameSanitizer.md"/> <element path="se.deversity.skill3.llm.SkillMdPostProcessor" rules=".claude/rules/se-deversity-skill3-llm-SkillMdPostProcessor.md"/> <element path="se.deversity.skill3.llm.Verifier" rules=".claude/rules/se-deversity-skill3-llm-Verifier.md"/> <element path="se.deversity.skill3.model.ContextBundle" rules=".claude/rules/se-deversity-skill3-model-ContextBundle.md"/> <element path="se.deversity.skill3.model.RunManifest" rules=".claude/rules/se-deversity-skill3-model-RunManifest.md"/> <element path="se.deversity.skill3.model.Source" rules=".claude/rules/se-deversity-skill3-model-Source.md"/> <element path="se.deversity.skill3.pipeline.BraveSearchClient" rules=".claude/rules/se-deversity-skill3-pipeline-BraveSearchClient.md"/> <element path="se.deversity.skill3.pipeline.CutoffResolver" rules=".claude/rules/se-deversity-skill3-pipeline-CutoffResolver.md"/> <element path="se.deversity.skill3.pipeline.DiscoveryProvider" rules=".claude/rules/se-deversity-skill3-pipeline-DiscoveryProvider.md"/> <element path="se.deversity.skill3.pipeline.FileCorpus" rules=".claude/rules/se-deversity-skill3-pipeline-FileCorpus.md"/> <element path="se.deversity.skill3.pipeline.HttpPageFetcher" rules=".claude/rules/se-deversity-skill3-pipeline-HttpPageFetcher.md"/> <element path="se.deversity.skill3.pipeline.PageFetcher" rules=".claude/rules/se-deversity-skill3-pipeline-PageFetcher.md"/> <element path="se.deversity.skill3.pipeline.QueryPlanner" rules=".claude/rules/se-deversity-skill3-pipeline-QueryPlanner.md"/> <element path="se.deversity.skill3.pipeline.RetrievalService" rules=".claude/rules/se-deversity-skill3-pipeline-RetrievalService.md"/> <element path="se.deversity.skill3.pipeline.SearchClient" rules=".claude/rules/se-deversity-skill3-pipeline-SearchClient.md"/> <element path="se.deversity.skill3.skillspector.InputVetter" rules=".claude/rules/se-deversity-skill3-skillspector-InputVetter.md"/> </scoped_rules>

<rule>When you work on any element listed in <scoped_rules>, open its referenced rule file and apply the guardrails there. The rule files are the authoritative source for those elements.</rule> </project_guardrails>

<!-- VIBETAGS-END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.