config
Skill5 starsChanged 4 months agoMITView on GitHub
The SKILL Registry is the central system for managing, resolving, and executing all skills in the black-garlic-fermentation-optimization project. This document describes how skills are registered, how they are resolved during execution, their input/output schemas, and how they are validated. Every skill MUST include YAML frontmatter with these fields: Skills are automatically registered at system startup: From each skill file, the system extracts: The main skill (skills/main.md) orchestrates the entire workflow: Each sub-skill is invoked sequentially: If a sub-skill fails: Each…
27 other projects use a version of this.
Adopted by
Most recently taken up by
- monicahq/monicatheir own version, first seen Nov 29, 2026
- aarontzeng/dev-leadtheir own version, first seen Nov 25, 2026
- on-retryx/exam-forgetheir own version, first seen Nov 22, 2026
- brquatti/readme-styletheir own version, first seen Nov 15, 2026
- sayurionishi/playwright-scaffoldtheir own version, first seen Nov 15, 2026
- idavidov13/agentic-playwrighttheir own version, first seen Nov 8, 2026
Used with
Projects with it also use uninstall.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
AnthropicSkilluninstall
Uninstall a community skill that was installed via the hub. Confirms before deleting files, refuses to touch first-party plugin skills, and logs every action. Use when the user wants to fully remove a community skill ("uninstall [skill]", "remove this skill") rather than just disable it.
Also in 3 projects that use this
Other versions27 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 27
- monicahq/monica★ 26ksame name
- microsoft/TokenEconomizer★ 8.2ksame name
- orangehrm/orangehrm★ 1.2ksame name
- idavidov13/agentic-playwright★ 312same name
- leonardcser/cursortab.nvim★ 265same name
- tmck-code/yet-another-statusline★ 244same name
- genkovich/sdd★ 187same name
- ThisisYoYoDev/claude-rag★ 9same name
- JeremieSamson/green-code★ 7same name
- dungnotnull/standalone-solar-deep-station-agent-skill★ 5same name
17 more not listed
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repositoryOne other file it gives its agents.
- CLAUDE.mdCLAUDE.md
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 13 are distinctive, and 5 are very specific to this project.
0
Common
Most of the 20 edited versions we read keep these.
13
Distinctive
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 39
Every skill MUST include YAML frontmatter with these fields:
- Distinctive: line 91
If a sub-skill fails:
- Distinctive: line 97
Failure: If critical, halt and emit error
- Distinctive: line 267
Auto-fix: If failed, attempt auto-fix (if enabled)
- Very specific: line 270
Failure: If failed after retries, emit GATE_ON_FAILURE hook
- Distinctive: line 320
web_search: Search web for current information
- Distinctive: line 355
All skill executions are tracked:
- Very specific: line 387
Create skills/new-skill.md with proper frontmatter
- Distinctive: line 389
Add input/output schemas to this document
- Very specific: line 391
Add test scenario to tests/test-scenarios.md
- Very specific: line 400
Document input/output in this SKILL.md
- Very specific: line 407
Add event to HookEvent enum in config/hooks.py
- Distinctive: line 409
Document hook purpose and context
- Distinctive: line 410
Add test coverage for hook behavior
- Distinctive: line 418
Frontmatter: Must include name and description
- Distinctive: line 419
Sections: Must include required sections
- Distinctive: line 421
Gates: Must specify quality gates
- Distinctive: line 422
Tools: Must specify required tools
“Common” is measured: kept by at least 6 in 10 of the 20 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
SKILL Registry — black-garlic-fermentation-optimization
Overview
The SKILL Registry is the central system for managing, resolving, and executing all skills in the black-garlic-fermentation-optimization project. This document describes how skills are registered, how they are resolved during execution, their input/output schemas, and how they are validated.
Skill Architecture
Hierarchical Structure
black-garlic-fermentation-optimization (Main Skill)
├── Sub-skills (Sequential Execution)
│ ├── sub-gather-requirements
│ ├── sub-evidence-collector
│ ├── sub-core-analysis
│ ├── sub-knowledge-updater
│ └── sub-advisor
├── Tools (Dynamic Invocation)
│ ├── web_search
│ ├── knowledge_query
│ └── fermentation_analysis
└── Quality Gates (Enforcement)
├── Universal Gates (U1-U6)
└── Domain Gates (G1-G4)Skill Resolution Process
- Discovery: Skills are discovered from the
skills/directory - Registration: Each skill's frontmatter is parsed and registered
- Validation: Skill schemas are validated against the contract
- Execution: Skills are executed in the defined order with hooks
Skill Registration
Frontmatter Schema
Every skill MUST include YAML frontmatter with these fields:
---
name: skill-name # Unique identifier (kebab-case)
description: one-line summary # When to trigger, what it does
---Registration Process
Skills are automatically registered at system startup:
- Scan
skills/directory for*.mdfiles - Parse YAML frontmatter from each file
- Validate required fields (name, description)
- Extract skill metadata (sections, tools, gates)
- Register in skill registry with metadata
Skill Metadata Extraction
From each skill file, the system extracts:
- Sections: Role & Persona, Workflow, Tools, Output Format, Quality Gates
- Tool Dependencies: List of tools the skill requires
- Gate Dependencies: Quality gates the skill participates in
- Language Support: Whether the skill supports multiple languages
- Sub-skills: For main.md, the list of sub-skills it orchestrates
Skill Execution Model
Main Harness Execution
The main skill (skills/main.md) orchestrates the entire workflow:
USER INPUT → Pre-Flight (Language Detection) → Step 1 → Step 2 → Step 3 → Step 4 → Step 5 → Quality Gates → OUTPUTSub-Skill Execution
Each sub-skill is invoked sequentially:
- Invoke:
Skill("sub-skill-name")called - Pre-hook:
SUBSKILL_BEFORE_INVOKEhook emitted - Execute: Sub-skill runs with its context
- Post-hook:
SUBSKILL_AFTER_INVOKEhook emitted - Validate: Quality gates checked
- Continue: Next sub-skill or error handling
Error Handling
If a sub-skill fails:
- Hook:
SUBSKILL_ON_FAILUREhook emitted - Retry: Up to 3 attempts with exponential backoff
- Fallback: Graceful degradation to lower quality level
- Recovery: Continue with next sub-skill if possible
- Failure: If critical, halt and emit error
Input/Output Schemas
Input Schema
Each skill accepts structured input:
interface SkillInput {
skill_name: string; // Target skill name
parameters: Record<string, any>; // Skill-specific parameters
context: {
execution_id: string; // Unique execution identifier
language: string; // Output language (en, vi)
degradation_level: number; // Current degradation level (0-4)
metadata: Record<string, any>; // Additional context
};
}Output Schema
Each skill produces structured output:
interface SkillOutput {
success: boolean;
skill_name: string;
result: {
data: any; // Skill-specific result data
metadata: Record<string, any>; // Execution metadata
};
gates_passed: string[]; // Quality gates that passed
gates_failed: string[]; // Quality gates that failed
execution_time_ms: number;
timestamp: string; // ISO 8601 timestamp
}Skill-Specific Schemas
sub-gather-requirements
Input:
{
raw_message: string;
provided_materials: any[];
}Output:
{
object: string;
scope: string;
timeframe: string;
available_inputs: any[];
target_audience: string;
language: string;
analysis_type: string;
}sub-evidence-collector
Input:
{
requirements: object; // From sub-gather-requirements
}Output:
{
current_data: any[];
authoritative_docs: any[];
recent_news: any[];
reference_benchmarks: any[];
sources: Array<{url: string, date: string, tier: number}>;
}sub-core-analysis
Input:
{
garlic: object;
equipment: object;
target: object;
language: string;
}Output:
{
cycle: {temperature: number, humidity: number, duration_days: number};
maillard_progress: object;
sac_retention: object;
antioxidant_levels: object;
sensory_profile: object;
quality_metrics: object;
scenarios: {best: object, base: object, worst: object};
}sub-knowledge-updater
Input:
{
keywords: string[];
max_results?: number;
}Output:
{
citations: Array<{
author: string;
year: number;
title: string;
venue: string;
doi_or_url: string;
tier: number;
relevance: string;
key_finding: string;
}>;
gaps: string[];
coverage_rating: string;
}sub-advisor
Input:
{
core_analysis: object;
evidence_bundle: object;
knowledge_evidence: object;
}Output:
{
conclusion: string; // "Optimal Fermentation" | "Conditional (tune cycle)" | "Low SAC/Quality" | "Inconclusive"
scenarios: {best: object, base: object, worst: object};
key_risks: Array<{risk: string, probability: string, impact: string}>;
evidence_chain: Array<{claim: string, source: string}>;
remediation: string[];
disclosure: string;
}Quality Gate Validation
Gate Enforcement
Each quality gate follows this process:
- Pre-hook:
GATE_BEFORE_CHECKhook emitted - Check: Gate condition evaluated
- Decision: Pass or fail
- Auto-fix: If failed, attempt auto-fix (if enabled)
- Retry: Re-check after auto-fix (max 2 retries)
- Post-hook:
GATE_AFTER_CHECKhook emitted - Failure: If failed after retries, emit
GATE_ON_FAILUREhook
Universal Gates (U1-U6)
| Gate | Condition | Auto-Fix |
| U1 | ≥3 sources cited, ≥1 academic/authoritative | Fetch from knowledge base |
| U2 | Disclosure before recommendation | Prepend disclosure |
| U3 | Evidence hierarchy per source | Annotate tiers |
| U4 | Language matches user preference | Translate output |
| U5 | Output uses template | Reformat |
| U6 | Every claim traceable | Flag unsupported |
Domain Gates (G1-G4)
| Gate | Condition | Auto-Fix |
| G1 | Fermentation cycle set | Set default cycle |
| G2 | SAC tracked | Add SAC tracking |
| G3 | Sensory assessed | Assess sensory |
| G4 | Quality/safety included | Add quality/safety |
Tool Integration
Tool Invocation
Skills can dynamically invoke registered tools:
# Get tool registry
registry = get_tool_registry()
# Execute tool
result = registry.execute(
"web_search",
query="black garlic fermentation",
max_results=10
)
# Check result
if result.success:
data = result.data
else:
error = result.errorAvailable Tools
See config/tools.py for complete tool definitions:
- web_search: Search web for current information
- knowledge_query: Query SECOND-KNOWLEDGE-BRAIN.md
- fermentation_analysis: Analyze fermentation parameters
Configuration Integration
Skill Configuration
Skills can access system configuration:
from config import get_config
config = get_config()
# Access configuration
llm_model = config.llm.model_name
temperature = config.llm.temperature
enable_web_search = config.is_feature_enabled(FeatureFlag.ENABLE_WEB_SEARCH)Feature Flags
Skills should respect feature flags:
if config.is_feature_enabled(FeatureFlag.ENABLE_GRACEFUL_DEGRADATION):
# Apply graceful degradation logic
passPerformance Monitoring
Execution Tracking
All skill executions are tracked:
from config.logging import get_logger
logger = get_logger("skill_execution")
with logger.performance_tracking("sub-core-analysis"):
# Execute skill
result = execute_skill("sub-core-analysis", **params)Statistics
Skill execution statistics are available:
from config.tools import get_tool_registry
registry = get_tool_registry()
stats = registry.get_stats("fermentation_analysis")
print(f"Execution count: {stats['execution_count']}")
print(f"Average time: {stats['avg_execution_time_ms']}ms")Extension Points
Adding New Skills
To add a new skill:
- Create
skills/new-skill.mdwith proper frontmatter - Implement required sections (Role, Workflow, Tools, Output, Gates)
- Add input/output schemas to this document
- Register in main.md if it's a sub-skill
- Add test scenario to
tests/test-scenarios.md
Adding New Tools
To add a new tool:
- Define tool schema in
config/tools.py - Implement ToolHandler subclass
- Register in
register_builtin_tools() - Document input/output in this SKILL.md
- Add usage examples
Adding New Hooks
To add a new hook:
- Add event to
HookEventenum inconfig/hooks.py - Register hook handler in appropriate lifecycle point
- Document hook purpose and context
- Add test coverage for hook behavior
Validation
Skill Validation
Skills are validated against these criteria:
- Frontmatter: Must include name and description
- Sections: Must include required sections
- Schema: Input/output must match defined schemas
- Gates: Must specify quality gates
- Tools: Must specify required tools
Validation Process
from config import validate_config
config = get_config()
errors = validate_config(config)
if errors:
for error in errors:
print(f"Validation error: {error}")
else:
print("Configuration valid")References
- Main Skill:
skills/main.md - Sub-Skills:
skills/sub-*.md - Tool Definitions:
config/tools.py - Hook System:
config/hooks.py - Logging:
config/logging.py - Configuration:
config/__init__.py
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
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.

