

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1# CLAUDE.md23This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.45## Project Overview67**AI Research Skills Library** - A comprehensive open-source library of 90 AI research skills enabling AI agents to autonomously conduct AI research — from idea to paper. Each skill provides expert-level guidance (200-500 lines) with real code examples, troubleshooting guides, and production-ready workflows.89**Mission**: Enable AI agents to autonomously conduct AI research from hypothesis to experimental verification, covering the full lifecycle: literature survey, ideation, dataset preparation, training pipelines, model deployment, evaluation, and paper writing.1011## Repository Architecture1213### Directory Structure (90 Skills Across 23 Categories)1415Skills are organized into numbered categories representing the AI research lifecycle:1617- `0-autoresearch-skill/` - **Autonomous research orchestration** (1 skill: Autoresearch — central layer that manages the full lifecycle and routes to all other skills)18- `01-model-architecture/` - Model architectures (5 skills: Megatron-Core, LitGPT, Mamba, RWKV, NanoGPT)19- `02-tokenization/` - Tokenizers (2 skills: HuggingFace Tokenizers, SentencePiece)20- `03-fine-tuning/` - Fine-tuning frameworks (4 skills: Axolotl, LLaMA-Factory, Unsloth, PEFT)21- `04-mechanistic-interpretability/` - Interpretability tools (4 skills: TransformerLens, SAELens, NNsight, Pyvene)22- `05-data-processing/` - Data curation (2 skills: Ray Data, NeMo Curator)23- `06-post-training/` - RLHF/DPO/GRPO (8 skills: TRL, GRPO, OpenRLHF, SimPO, verl, slime, miles, torchforge)24- `07-safety-alignment/` - Safety and guardrails (4 skills: Constitutional AI, LlamaGuard, NeMo Guardrails, Prompt Guard)25- `08-distributed-training/` - Distributed systems (6 skills: Megatron-Core, DeepSpeed, FSDP, Accelerate, PyTorch Lightning, Ray Train)26- `09-infrastructure/` - Cloud compute (3 skills: Modal, SkyPilot, Lambda Labs)27- `10-optimization/` - Optimization techniques (6 skills: Flash Attention, bitsandbytes, GPTQ, AWQ, HQQ, GGUF)28- `11-evaluation/` - Benchmarking (3 skills: lm-evaluation-harness, BigCode, NeMo Evaluator)29- `12-inference-serving/` - Inference engines (4 skills: vLLM, TensorRT-LLM, llama.cpp, SGLang)30- `13-mlops/` - Experiment tracking (3 skills: Weights & Biases, MLflow, TensorBoard)31- `14-agents/` - Agent frameworks (4 skills: LangChain, LlamaIndex, CrewAI, AutoGPT)32- `15-rag/` - Retrieval-augmented generation (5 skills: Chroma, FAISS, Sentence Transformers, Pinecone, Qdrant)33- `16-prompt-engineering/` - Structured output (4 skills: DSPy, Instructor, Guidance, Outlines)34- `17-observability/` - LLM observability (2 skills: LangSmith, Phoenix)35- `18-multimodal/` - Vision and speech (7 skills: CLIP, Whisper, LLaVA, Stable Diffusion, SAM, BLIP-2, AudioCraft)36- `19-emerging-techniques/` - Advanced methods (6 skills: MoE Training, Model Merging, Long Context, Speculative Decoding, Knowledge Distillation, Model Pruning)37- `20-ml-paper-writing/` - Paper writing (1 skill: ML Paper Writing with LaTeX templates for NeurIPS, ICML, ICLR, ACL, AAAI, COLM)38- `21-research-ideation/` - Ideation (2 skills: Research Brainstorming, Creative Thinking)39- `22-agent-native-research-artifact/` - Agent-Native Research Artifact tooling (3 skills: ARA Compiler, ARA Research Manager, ARA Rigor Reviewer — ingestion, post-task provenance recording, and Seal Level 2 epistemic review)4041### Skill File Structure4243Each skill follows a standardized format:44```45skill-name/46├── SKILL.md # Main guidance (200-600 lines with YAML frontmatter)47├── references/ # Deep documentation (300KB+ target)48│ ├── README.md # From official docs49│ ├── api.md # API reference50│ ├── tutorials.md # Step-by-step guides51│ ├── issues.md # Real GitHub issues & solutions52│ └── releases.md # Version history53├── scripts/ # Helper scripts (optional)54├── templates/ # Code templates (optional)55└── examples/ # Example implementations (optional)56```5758## Skill Quality Standards5960### YAML Frontmatter Requirements (CRITICAL)6162All `SKILL.md` files MUST include YAML frontmatter with these exact fields:6364```yaml65---66name: skill-name-here # kebab-case, no quotes, gerund form preferred67description: Third-person description of what AND when to use this skill # No quotes, max 1024 chars68version: 1.0.0 # Semantic versioning69author: Orchestra Research # Standard author70license: MIT # Standard license71tags: [Tag One, Tag Two] # Title Case (except UPPERCASE acronyms like GRPO, TRL, RLHF)72dependencies: [pkg>=1.0.0] # Optional, with version constraints73---74```7576**Critical Rules**:77- `name`: Use gerund form (e.g., `serving-llms`, `processing-data`, `grpo-rl-training`)78- `description`: Third person ("Provides guidance for..."), include WHAT it does AND WHEN to use it79- `tags`: Title Case for regular words, UPPERCASE for acronyms (GRPO, TRL, RLHF, DPO, PPO)80- No quotes around any field values (except in arrays)81- Dependencies should include version constraints: `transformers>=4.47.0`8283### Content Quality Standards8485**Core Requirements** (based on Anthropic official best practices):86- ✅ SKILL.md body: **200-500 lines** (under 500 lines is critical for performance)87- ✅ Progressive disclosure: SKILL.md as overview, details in separate reference files88- ✅ Workflows with copy-paste checklists for complex tasks89- ✅ "When to use vs alternatives" guidance section90- ✅ Common issues section with solutions91- ✅ Concise content: assume Claude is smart, no over-explaining basics92- ✅ Code examples with language detection (```python, ```bash, etc.)93- ✅ References ONE level deep from SKILL.md (no nested references)9495**Gold Standard** (aim for this - see `06-post-training/grpo-rl-training/`):96- ✅ 2-3 complete workflows with step-by-step checklists97- ✅ Reference files for advanced topics (one level deep)98- ✅ Feedback loops (validate → fix → repeat) for quality-critical operations99- ✅ Consistent terminology throughout100- ✅ Concrete input/output examples101- ✅ Real GitHub issues with solutions (when available)102103**NOT Acceptable**:104- ❌ SKILL.md over 500 lines (split into reference files instead)105- ❌ Over-explaining basics that Claude already knows106- ❌ First-person descriptions ("I can help you...")107- ❌ Vague skill names ("helper", "utils", "tools")108- ❌ Nested references (SKILL.md → ref1.md → ref2.md)109- ❌ Missing workflows with checklists for complex tasks110111## Development Workflow112113### Adding a New Skill1141151. **Choose skill from roadmap** (see CONTRIBUTING.md or README.md)1162. **Create directory structure** in appropriate category (01-19)1173. **Write SKILL.md** with YAML frontmatter following standards above1184. **Add reference documentation** (target 300KB+ from official sources)1195. **Validate quality**:120 - Check SKILL.md has YAML frontmatter121 - Verify SKILL.md is 200-500 lines122 - Ensure code blocks have language tags123 - Confirm references are one level deep from SKILL.md124 - Check documentation size: `du -sh skill-name/references/`1256. **Test the skill** with real use cases before submitting126127### Improving Existing Skills128129When updating skills:1301. **Maintain YAML frontmatter** format and fields1312. **Keep SKILL.md under 500 lines** - split into reference files if needed1323. **Add workflows** with checklists for complex operations1334. **Update version number** in YAML frontmatter1345. **Test changes** with representative tasks135136### Quality Validation Commands137138```bash139# Check YAML frontmatter exists140head -20 skill-name/SKILL.md141142# Verify SKILL.md line count (target 200-500 lines)143wc -l skill-name/SKILL.md144145# Check documentation size (target 300KB+)146du -sh skill-name/references/147148# Verify code blocks have language tags149grep -A 1 '```' skill-name/SKILL.md | head -20150151# Validate YAML frontmatter syntax152python -c "import yaml; yaml.safe_load(open('skill-name/SKILL.md').read().split('---')[1])"153```154155## Key Files156157- **README.md** - Project overview, all 90 skills listed with descriptions and stats158- **CONTRIBUTING.md** - Complete contribution guidelines and quality standards159- **SKILL_TEMPLATE.md** - Copy-paste scaffold for new skills160- **ROADMAP.md** - Development roadmap (90 skills achieved)161- **anthropic_official_docs/** - Anthropic's official best practices for skills162163## Git Workflow164165Standard Git workflow:166```bash167# Create feature branch168git checkout -b add-skill-name169170# Add and commit changes171git add category/skill-name/172git commit -m "Add [Skill Name] skill173174- X lines of documentation175- Y GitHub issues with solutions176- API reference and examples included"177178# Push to fork and create PR179git push origin add-skill-name180```181182## Automation: Orchestra Skill Marketplace Sync183184### How Auto-Sync Works185186When skills are committed to the `main` branch, GitHub Actions automatically syncs them to the Orchestra skill marketplace:1871881. **GitHub Actions detects** changed skill folders on push to `main`1892. **For each changed skill**:190 - Extracts metadata from SKILL.md frontmatter (`name`, `author`, etc.)191 - Creates ZIP file containing entire skill directory (SKILL.md, references/, scripts/, etc.)192 - Uploads to Orchestra API endpoint1933. **Orchestra stores** ZIP in Supabase Storage and creates database record1944. **Skill appears** in marketplace at `https://orchestra.com/research-skills`195196### Workflow File Location197198- **File**: `.github/workflows/sync-skills.yml`199- **Triggers**: Push to `main` branch, manual workflow dispatch200- **What syncs**: Only skill directories that changed in the commit201202### Author Detection (Orchestra vs Community)203204The workflow reads the `author:` field from SKILL.md frontmatter to determine badge:205206**Official Orchestra Skill**:207```yaml208---209author: Orchestra Research # Contains "Orchestra"210---211```212- Result: Source = `orchestra` (Official badge)213- Storage: `research-skills/orchestra/skill-name.zip`214215**Community Skill**:216```yaml217---218author: Jane Doe # Does NOT contain "Orchestra"219---220```221- Result: Source = `community` (Community badge)222- Storage: `research-skills/community/skill-name.zip`223224### What Gets Synced225226The workflow zips **ALL contents** of skill directory:227- ✅ SKILL.md228- ✅ references/ (all subdirectories)229- ✅ scripts/ (if exists)230- ✅ assets/ (if exists)231- ✅ examples/ (if exists)232- ✅ templates/ (if exists)233- ❌ Hidden files (`.gitkeep`, `.DS_Store`)234235### Testing the Sync236237**Manual trigger**:2381. Go to GitHub Actions tab2392. Select "Sync Skills to Orchestra" workflow2403. Click "Run workflow"241242**Test with commit**:243```bash244# Make a small change to any skill245echo "\n<!-- Updated $(date) -->" >> 01-model-architecture/litgpt/SKILL.md246247# Commit and push to main248git add .249git commit -m "test: trigger auto-sync"250git push origin main251```252253**Verify sync worked**:2541. Check GitHub Actions tab for workflow run status2552. Check Orchestra marketplace for updated skill2563. Check Supabase Storage for ZIP file257258### Important Notes259260- **GitHub Secrets required**: `ORCHESTRA_API_URL`, `ORCHESTRA_SYNC_API_KEY` (already configured)261- **Only syncs changed skills**: Workflow detects which skill directories changed in commit262- **SKILL.md required**: Skills without SKILL.md are skipped with warning263- **See detailed setup**: `dev_data/GITHUB_SKILLS_SYNC_SETUP.md`264265## npm Package Publishing266267### How It Works268269The `publish-npm.yml` workflow auto-publishes to npm when the version in `packages/ai-research-skills/package.json` changes on `main`.270271- **Auth**: Uses OIDC trusted publishing (no npm tokens). Configured on npmjs.com under the package's Trusted Publishers settings.272- **Provenance**: `--provenance` flag signs packages with Sigstore for supply chain security.273- **Workflow**: `.github/workflows/publish-npm.yml`274275### Bumping Versions276277**Always use `npm version`** (not manual edits) to keep `package-lock.json` in sync:278279```bash280cd packages/ai-research-skills281npm version patch # 1.3.6 → 1.3.7282npm version minor # 1.3.7 → 1.4.0283npm version major # 1.4.0 → 2.0.0284```285286Use `--no-git-tag-version` if you want to commit manually.287288### Common Issues289290- **`npm ci` fails in CI**: `package-lock.json` is out of sync. Run `npm install` locally and commit the lockfile.291- **OIDC auth fails**: The trusted publisher config on npmjs.com must match the repo exactly (case-sensitive: `Orchestra-Research/AI-Research-SKILLs`, workflow: `publish-npm.yml`).292- **`NODE_AUTH_TOKEN` blocks OIDC**: `actions/setup-node` with `registry-url` auto-sets this token. The workflow unsets it before publish so OIDC takes over.293- **Version unchanged skip**: The workflow compares `HEAD` vs `HEAD~1`. If only the lockfile changed (not `package.json` version), publish is skipped. Bump the version to trigger.294295## Important Conventions296297### Naming Conventions298299- **Skill names**: Use gerund form (verb + -ing) in kebab-case: `processing-pdfs`, `serving-llms`, `grpo-rl-training`300- **Tags**: Title Case for words, UPPERCASE for acronyms (GRPO, TRL, RLHF, DPO, PPO, FSDP, MoE)301- **Descriptions**: Third person, include what AND when to use302303### Code Examples304305Always use language detection in code blocks:306```python307# Good - has language tag308from transformers import AutoModel309```310311NOT:312```313# Bad - no language tag314from transformers import AutoModel315```316317### Progressive Disclosure Pattern318319SKILL.md should link directly to reference files (one level deep):320321```markdown322## Advanced Features323324**API Reference**: See [references/api.md](references/api.md)325**Troubleshooting**: See [references/issues.md](references/issues.md)326```327328## Philosophy329330**Quality over Quantity**: This library maintains high standards by:331- Requiring 200-500 line SKILL.md files (focused, actionable guidance)332- Including 300KB+ documentation from official sources333- Providing real GitHub issues with solutions334- Following Anthropic's official best practices for skills335- Testing skills with real use cases before inclusion336337Each skill represents expert-level knowledge distilled into a format optimized for AI agent consumption.338
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-build.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-code-simplify.mdc · 51 | Cursor rules | testing-strategy | 30/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-plan.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-review.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-ship.mdc · 51 | Cursor rules | testing-strategygitdeploymentdo-not | 61/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-spec.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-cursor/.cursor/rules/cmd-test.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-forgecat/AGENTS.md · 51 | AGENTS.md | lint-formatstylearchdo-not | 73/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/addyosmani/agent-skills/for-forgecat/CLAUDE.md · 51 | CLAUDE.md | teststylearchagent-behaviour | 70/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-code/anthropics_claude-code_ralph-wiggum/for-cursor/.cursor/rules/cmd-cancel-ralph.mdc · 51 | Cursor rules | no sections | 16/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-code/anthropics_claude-code_ralph-wiggum/for-cursor/.cursor/rules/cmd-help.mdc · 51 | Cursor rules | no sections | 54/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-code/anthropics_claude-code_ralph-wiggum/for-cursor/.cursor/rules/cmd-ralph-loop.mdc · 51 | Cursor rules | no sections | 22/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_agent-sdk-dev/for-cursor/.cursor/rules/cmd-new-sdk-app.mdc · 51 | Cursor rules | setupstylearchdocs | 76/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_claude-md-management/for-cursor/.cursor/rules/cmd-revise-claude-md.mdc · 51 | Cursor rules | agent-behaviour | 50/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_code-review/for-cursor/.cursor/rules/cmd-code-review.mdc · 51 | Cursor rules | testing-strategygit | 35/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_commit-commands/for-cursor/.cursor/rules/cmd-clean_gone.mdc · 51 | Cursor rules | no sections | 60/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_commit-commands/for-cursor/.cursor/rules/cmd-commit-push-pr.mdc · 51 | Cursor rules | stylegit | 44/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_commit-commands/for-cursor/.cursor/rules/cmd-commit.mdc · 51 | Cursor rules | style | 44/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_example-plugin/for-cursor/.cursor/rules/cmd-example-command.mdc · 51 | Cursor rules | lint-formatstyleagent-behaviour | 58/100 | today | |
| nota-america/forgecat-agent-profilesprofiles/anthropics/claude-plugins-official/anthropics_claude-plugins-official_feature-dev/for-cursor/.cursor/rules/cmd-feature-dev.mdc · 51 | Cursor rules | stylearchgit | 56/100 | today |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| dotCMS/corecore-web/CLAUDE.md · 949 | CLAUDE.md | teststylearchtesting-strategy+3 | 100/100 | 14 days ago | |
| tphakala/birdnet-goCLAUDE.md · 1.6k | CLAUDE.md | buildtestlint-formatstyle+8 | 100/100 | today | |
| tyrchen/geektime-bootcamp-aiw7/genslides/backend/CLAUDE.md · 230 | CLAUDE.md | testlint-formatstylearch+6 | 100/100 | 9 days ago | |
| nimbalyst/nimbalystpackages/android/CLAUDE.md · 1.5k | CLAUDE.md | setupbuildstylearch+2 | 100/100 | 14 days ago | |
| microsoft/playwrightCLAUDE.md · 95k | CLAUDE.md | buildtestlint-formatstyle+7 | 100/100 | 7 days ago | |
| Adit-Jain-srm/NightmareNetCLAUDE.md · 46 | CLAUDE.md | buildtestlint-formatstyle+6 | 100/100 | 14 days ago | |
| stacklok/toolhiveCLAUDE.md · 2.0k | CLAUDE.md | buildteststylearch+4 | 100/100 | 14 days ago | |
| bagisto/bagistoCLAUDE.md · 28k | CLAUDE.md | setupbuildteststyle+5 | 100/100 | 7 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/nota-america-forgecat-agent-profiles-profiles-orchestra-research-ai-research-skills-for-forgecat-claude)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.