scoring-checks
Skill1.3k starsChanged 7 months agoMITView on GitHub
Add a new deterministic scoring check in src/scoring/checks/ that evaluates config quality. Follows the Check[] return pattern, uses point constants from src/scoring/constants.ts, and integrates via filterChecksForTarget() in src/scoring/index.ts. Use when user says 'add scoring check', 'new check', 'modify scoring criteria', or works in src/scoring/checks/. Do NOT use for display changes or refactoring scoring logic.
Trending
Less talk lately.about the whole repository
Who's talking about caliber-ai-org/ai-setup
- sudosubin/agents.nix“agent-skills.github.caliber-ai-org.ai-setup: 1.55.1 → 1.55.2”GitHub · Oct 3, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Oct 1, 2026
- sudosubin/agents.nix“agent-skills.github.caliber-ai-org.ai-setup: init at 1.55.1”GitHub · Sep 26, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Sep 2, 2026
- FlorianBruniaux/claude-code-ultimate-guide“Broken links detected in guide markdown”GitHub · Sep 1, 2026
The biggest 5 of 22 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 22
Talked about on GitHub (22 times).
On GitHub · 22
- Oct 3, 2026agent-skills.github.caliber-ai-org.ai-setup: 1.55.1 → 1.55.2 — sudosubin/agents.nix0 reactions
- Oct 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions
- Sep 26, 2026agent-skills.github.caliber-ai-org.ai-setup: init at 1.55.1 — sudosubin/agents.nix0 reactions
- Sep 2, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Sep 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
17 more on GitHub
- Sep 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Sep 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Aug 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Aug 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Aug 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Jul 1, 2026Broken links detected in guide markdown — AMusso19/CUSTOM-claude-code-ultimate-guide-Florian0 reactions
- Jul 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Jul 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Jun 1, 2026Broken links detected in guide markdown — alexica00/claude-code-ultimate-guide0 reactions
- Jun 1, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- May 18, 2026Broken links detected in guide markdown — FlorianBruniaux/claude-code-ultimate-guide0 reactions · 1 comment
- Apr 18, 2026Audit candidate: caliber-ai-org/ai-setup — xiaolai/nlpm0 reactions · 4 comments
- Mar 28, 2026Add Caliber — AI config generation & sync CLI — roboco-io/awesome-vibecoding0 reactions · 1 comment
- Mar 26, 2026feat: charter score — zero-install AI-readiness audit for any repo — Stackbilt-dev/charter0 reactions · 1 comment
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/caliber-conventions.mdcCursor rule
- .cursor/rules/caliber-learnings.mdcCursor rule
- .cursor/rules/caliber-pre-commit.mdcCursor rule
- .cursor/rules/llm-layer.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- scoring-checksSkill
- setup-caliberSkill
- writers-patternSkill
- adding-a-commandSkill
- caliber-testingSkill
- find-skillsSkill
- llm-providerSkill
- save-learningSkill
- setup-caliberSkill
- writers-patternSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
26 rules. About 0 are common, 5 are distinctive, and 21 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
21
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 11
Add a new deterministic check that evaluates a single aspect of AI agent config quality.
- Very specific: line 16
Point values come from constants.ts: Every earnedPoints and maxPoints must reference POINTS_* from src/scoring/constants.ts.
- Very specific: line 20
Register in src/scoring/index.ts: Add the import and spread the result into the allChecks array in computeLocalScore().
- Very specific: line 21
Target filtering: If the check is platform-specific (Claude-only, Cursor-only, etc.), add its ID to the appropriate *_ONLY_CHECKS set in …
- Distinctive: line 27
Verify before proceeding: Is your check measurable with a numeric point value?
- Distinctive: line 29
Add constants below the appropriate category section (existence, quality, grounding, accuracy, freshness, bonus):
- Very specific: line 42
Check existing patterns: Token budgets use TOKEN_BUDGET_THRESHOLDS, code blocks use CODE_BLOCK_THRESHOLDS, concreteness uses …
- Very specific: line 44
Verify: Review CATEGORY_MAX object to ensure your check fits within its category's point budget.
- Distinctive: line 58
Create the function following this structure:
- Very specific: line 96
Verify ID uniqueness: Run grep -r "'your_unique_check_id'" src/scoring/checks/ — should return only your new check.
- Very specific: line 100
If your check only applies to certain agents (Claude, Cursor, Codex, GitHub Copilot), register it in src/scoring/constants.ts:
- Very specific: line 120
Verify filtering: Examine filterChecksForTarget() in src/scoring/index.ts to ensure your category will work correctly for your target …
- Distinctive: line 124
Import your function at the top:
- Very specific: line 130
Add to computeLocalScore() inside the allChecks array initialization:
- Very specific: line 150
Verify registration: Run npm test src/scoring/__tests__/accuracy.test.ts (or similar) — all existing tests should still pass.
- Very specific: line 154
Create or edit src/scoring/checks/__tests__/your-file.test.ts:
- Very specific: line 208
Run tests: npm test src/scoring/checks/__tests__/your-file.test.ts.
- Very specific: line 217
Add export const POINTS_CLAUDE_RULES = 3.
- Very specific: line 219
Import in index.ts and add ...checkExistence(dir) (already done)
- Very specific: line 220
Test with mkdtempSync; verify earnedPoints matches POINTS_CLAUDE_RULES
- Very specific: line 222
Result: Check id: 'claude_rules_exist' returns earnedPoints: 3, passed: true when dir exists.
- Very specific: line 253
Check existence with existsSync(join(dir, path))
- Very specific: line 275
Fix: Ensure file is in src/scoring/checks/ (not nested).
- Very specific: line 278
Fix: Use friendly language: 3 code blocks found (need 3 for full points) instead of codeBlockCount=3.
- Very specific: line 281
Fix: Test all boundaries: value=0, value=threshold, value>>threshold.
- Very specific: line 284
Fix: Run grep -r "'my_id'" src/scoring/checks/ to find duplicates.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill 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.
Files
Adding a Scoring Check
Add a new deterministic check that evaluates a single aspect of AI agent config quality. All checks must be filesystem-based with no network calls or LLM inference.
Critical
- Check must be deterministic: Same filesystem state → same result every time. No randomness, no external APIs.
- Point values come from constants.ts: Every
earnedPointsandmaxPointsmust referencePOINTS_*fromsrc/scoring/constants.ts. Do NOT hardcode numbers. - Always return
Check[]array: Export a functioncheck<Category>(dir: string): Check[]where category is one of:existence,quality,grounding,accuracy,freshness,bonus. - Every check must have:
id(kebab-case, unique),name,category,maxPoints,earnedPoints,passed,detail, and optionalsuggestion/fix. - Fix object fields:
action(string describing what to do),data(context for the fix),instruction(user-facing guidance). - Register in src/scoring/index.ts: Add the import and spread the result into the
allChecksarray incomputeLocalScore(). - Target filtering: If the check is platform-specific (Claude-only, Cursor-only, etc.), add its ID to the appropriate
*_ONLY_CHECKSset inconstants.ts.
Instructions
Step 1: Define point constants in src/scoring/constants.ts
Verify before proceeding: Is your check measurable with a numeric point value?
Add constants below the appropriate category section (existence, quality, grounding, accuracy, freshness, bonus):
// In the appropriate CATEGORY section, e.g., Quality checks (25 pts):
export const POINTS_YOUR_CHECK_NAME = 4; // 1-12 pts typical
// If threshold-based, add a companion array:
export const YOUR_THRESHOLD_ARRAY = [
{ minValue: 10, points: 4 },
{ minValue: 5, points: 2 },
] as const;Check existing patterns: Token budgets use TOKEN_BUDGET_THRESHOLDS, code blocks use CODE_BLOCK_THRESHOLDS, concreteness uses CONCRETENESS_THRESHOLDS.
Verify: Review CATEGORY_MAX object to ensure your check fits within its category's point budget.
Step 2: Create or edit check function in src/scoring/checks/
Choose the file based on category. Each file exports a check<Name>(dir: string): Check[] function:
existence.ts— files/directories exist (CLAUDE.md, .cursorrules, skills, MCP servers)quality.ts— config structure, size, clarity (code blocks, token budget, concreteness, duplicates)grounding.ts— references to actual project files/directory structureaccuracy.ts— validity of references, git-based config driftfreshness.ts— git commit-based staleness, secrets, permissionsbonus.ts— hooks, learned content, OpenSkills formatsources.ts— source configuration and usage
Create the function following this structure:
import type { Check } from '../index.js';
import {
POINTS_YOUR_CHECK,
YOUR_THRESHOLD_ARRAY,
} from '../constants.js';
import { readFileOrNull } from '../utils.js'; // or other helpers
export function checkYourCategory(dir: string): Check[] {
const checks: Check[] = [];
// 1. Measure something concrete
const yourMetric = /* e.g., countFiles(), validatePaths(), etc. */;
const threshold = YOUR_THRESHOLD_ARRAY.find(t => yourMetric >= t.minValue);
const earnedPts = threshold?.points ?? 0;
checks.push({
id: 'your_unique_check_id',
name: 'Human-readable check name',
category: 'quality', // matches function context
maxPoints: POINTS_YOUR_CHECK,
earnedPoints: earnedPts,
passed: earnedPts >= Math.ceil(POINTS_YOUR_CHECK * 0.6), // or custom logic
detail: `${earnedPts}/${POINTS_YOUR_CHECK} points — ${yourMetric} items found`,
suggestion: earnedPts >= POINTS_YOUR_CHECK ? undefined : 'Action to improve',
fix: earnedPts >= POINTS_YOUR_CHECK ? undefined : {
action: 'verb_noun', // e.g., 'add_code_blocks', 'fix_references'
data: { currentValue: yourMetric, targetValue: 10 },
instruction: 'Specific, actionable guidance for the user.',
},
});
return checks;
}Verify ID uniqueness: Run grep -r "'your_unique_check_id'" src/scoring/checks/ — should return only your new check.
Step 3: Handle platform-specific filtering (if applicable)
If your check only applies to certain agents (Claude, Cursor, Codex, GitHub Copilot), register it in src/scoring/constants.ts:
// Add to the appropriate set:
export const CLAUDE_ONLY_CHECKS = new Set([
'claude_md_exists',
'your_new_check_id', // ← add here
'claude_rules_exist',
]);Available sets (update exactly one if applicable):
CLAUDE_ONLY_CHECKS— Claude Code targetsCURSOR_ONLY_CHECKS— Cursor targetsCODEX_ONLY_CHECKS— Codex/OpenCode targetsCOPILOT_ONLY_CHECKS— GitHub Copilot targetsBOTH_ONLY_CHECKS— Both Claude AND Cursor (cross-platform parity)NON_CODEX_CHECKS— Everything except Codex/OpenCodeCLAUDE_OR_CODEX_CHECKS— Claude OR Codex
Verify filtering: Examine filterChecksForTarget() in src/scoring/index.ts to ensure your category will work correctly for your target agents.
Step 4: Register in src/scoring/index.ts
Import your function at the top:
import { checkYourCategory } from './checks/your-file.js';Add to computeLocalScore() inside the allChecks array initialization:
export function computeLocalScore(dir: string, targetAgent?: TargetAgent): ScoreResult {
const target = targetAgent ?? detectTargetAgent(dir);
const allChecks: Check[] = [
...checkExistence(dir),
...checkQuality(dir),
...checkGrounding(dir),
...checkAccuracy(dir),
...checkYourCategory(dir), // ← ADD HERE IN ORDER
...checkFreshness(dir),
...checkBonus(dir),
...checkSources(dir),
];
// ... rest of function
}Verify registration: Run npm test src/scoring/__tests__/accuracy.test.ts (or similar) — all existing tests should still pass.
Step 5: Write deterministic unit tests
Create or edit src/scoring/checks/__tests__/your-file.test.ts:
import { describe, it, expect } from 'vitest';
import { mkdtempSync, writeFileSync, rmSync } from 'fs';
import { join } from 'path';
import { checkYourCategory } from '../your-file.js';
import { POINTS_YOUR_CHECK } from '../../constants.js';
describe('checkYourCategory', () => {
it('awards full points when condition passes', () => {
const dir = mkdtempSync('test-scoring-');
try {
// Set up the passing condition
writeFileSync(join(dir, 'SOME_FILE.md'), 'content that satisfies check');
const checks = checkYourCategory(dir);
const check = checks.find(c => c.id === 'your_unique_check_id');
expect(check).toBeDefined();
expect(check?.passed).toBe(true);
expect(check?.earnedPoints).toBe(POINTS_YOUR_CHECK);
} finally {
rmSync(dir, { recursive: true });
}
});
it('awards zero points when condition fails', () => {
const dir = mkdtempSync('test-scoring-');
try {
// Don't create the required condition
const checks = checkYourCategory(dir);
const check = checks.find(c => c.id === 'your_unique_check_id');
expect(check?.passed).toBe(false);
expect(check?.earnedPoints).toBe(0);
} finally {
rmSync(dir, { recursive: true });
}
});
it('returns correct detail message', () => {
const dir = mkdtempSync('test-scoring-');
try {
const checks = checkYourCategory(dir);
const check = checks.find(c => c.id === 'your_unique_check_id');
expect(check?.detail).toBeTruthy();
} finally {
rmSync(dir, { recursive: true });
}
});
});Run tests: npm test src/scoring/checks/__tests__/your-file.test.ts. All must pass before shipping.
Examples
Example 1: Existence Check
Trigger: User says "Add a check to verify .claude/rules/ directory exists."
Actions:
- Add
export const POINTS_CLAUDE_RULES = 3;to constants.ts - In existence.ts:
existsSync(join(dir, '.claude', 'rules'))→ true/false - Import in index.ts and add
...checkExistence(dir)(already done) - Test with mkdtempSync; verify earnedPoints matches POINTS_CLAUDE_RULES
Result: Check id: 'claude_rules_exist' returns earnedPoints: 3, passed: true when dir exists.
Example 2: Quality Check with Thresholds
Trigger: User says "Verify config has at least 3 code blocks with executable commands."
Actions:
- Add to constants.ts:
export const CODE_BLOCK_THRESHOLDS = [ { minBlocks: 3, points: 8 }, { minBlocks: 2, points: 6 }, { minBlocks: 1, points: 3 }, ] as const; - In quality.ts:
- Parse CLAUDE.md with regex to count ``` blocks
- Match against CODE_BLOCK_THRESHOLDS
- Return points based on threshold match
- In fix: Suggest which commands to add
Result: 3+ blocks = 8 pts, 2 blocks = 6 pts, 1 block = 3 pts, 0 blocks = 0 pts.
Example 3: Accuracy Check (Reference Validation)
Trigger: User says "Check that all file paths mentioned in config actually exist."
Actions:
- Add
export const POINTS_REFERENCES_VALID = 8;to constants.ts - In accuracy.ts:
- Extract backtick-quoted paths and dir patterns from config
- Check existence with
existsSync(join(dir, path)) - Calculate ratio:
valid / total - Award partial points:
Math.round(ratio * POINTS_REFERENCES_VALID)
- In fix: List invalid paths the user should fix
Result: 80% valid refs = ~6 pts; 100% valid = 8 pts; 0% valid = 0 pts.
Common Issues
Issue: "My check doesn't appear in the score report."
Fix: 1) Verify ID in *_ONLY_CHECKS if platform-specific. 2) Verify import and spread in index.ts allChecks array. 3) Run npm test to ensure no tsc errors. 4) Check detectTargetAgent() returns your target platform.
Issue: "Points are hardcoded but should use constants."
Fix: Replace all literal numbers like earnedPoints: 5 with earnedPoints: POINTS_YOUR_CHECK. Constants are in src/scoring/constants.ts — use them consistently.
Issue: "Check makes an API call or network request."
Fix: Scoring MUST be deterministic and offline. Use only: fs module (readFileSync, existsSync, readdirSync), path, execSync for git commands. No HTTP, no LLM calls, no external services.
Issue: "Platform-specific check appears for the wrong agent."
Fix: 1) Verify check ID is in correct *_ONLY_CHECKS set. 2) Double-check filterChecksForTarget() handles your platform set. 3) Test with detectTargetAgent() on a real project.
Issue: "Test fails with 'Module not found' error."
Fix: Ensure file is in src/scoring/checks/ (not nested). Use .js extension in imports (TypeScript transpiles to ES modules). Run npm run build to check for tsc errors.
Issue: "Detail message is confusing or too technical."
Fix: Use friendly language: 3 code blocks found (need 3 for full points) instead of codeBlockCount=3. Make it clear WHY they got/lost points.
Issue: "Threshold-based check gives wrong points for edge cases."
Fix: Test all boundaries: value=0, value=threshold, value>>threshold. Use .find() to match highest-to-lowest: find(t => value >= t.minValue).
Issue: "Two checks have the same ID."
Fix: Run grep -r "'my_id'" src/scoring/checks/ to find duplicates. IDs must be globally unique across all check files. Use descriptive names like claude_md_exists, not check_1.
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.

