@rely-ai/caliber 1.12.15 → 1.12.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/bin.js +27 -20
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1693,41 +1693,45 @@ CoreSetup schema:
1693
1693
  }
1694
1694
 
1695
1695
  IMPORTANT: Do NOT generate full skill content. Only output skill topic names and descriptions.
1696
- Skills will be generated separately. Generate 3-6 skill topics per target platform based on project complexity. Each topic should cover a distinct tool, workflow, or domain.
1696
+ Skills will be generated separately. Generate 3-6 skill topics per target platform based on project complexity.
1697
+
1698
+ Skills serve two purposes:
1699
+ 1. **Codify repeating patterns** \u2014 look at the codebase for patterns that developers repeat: how to create a new API route, how to write to the database, how to add a new page/component, how to write tests. These are the most valuable skills because they ensure every developer (and every LLM session) follows the same patterns.
1700
+ 2. **Enforce team consistency** \u2014 skills act as executable coding standards. When multiple developers each work with their own LLM sessions on the same codebase, skills ensure everyone writes code the same way \u2014 same file structure, same error handling, same naming conventions, same patterns.
1701
+
1702
+ Derive skill topics from actual code in the project. Look at existing files for the patterns being used, then create skills that replicate those patterns for new work.
1697
1703
 
1698
1704
  Skill topic description MUST include WHAT it does + WHEN to use it with specific trigger phrases.
1699
- Example: "Manages database migrations. Use when user says 'run migration', 'create migration', 'db schema change', or modifies files in db/migrations/."
1705
+ Example: "Creates a new API endpoint following the project's route pattern. Use when user says 'add endpoint', 'new route', 'create API', or adds files to src/routes/."
1700
1706
 
1701
1707
  The "fileDescriptions" object MUST include a one-liner for every file that will be created or modified.
1702
1708
  The "deletions" array should list files that should be removed (e.g. stale configs). Omit if empty.
1703
1709
 
1704
- SCORING CRITERIA \u2014 your output is scored deterministically. Optimize for 100/100:
1710
+ SCORING CRITERIA \u2014 your output is scored deterministically against the actual filesystem. Optimize for 100/100:
1705
1711
 
1706
1712
  Existence (25 pts):
1707
- - CLAUDE.md exists (6 pts) \u2014 always generate for claude/both targets
1713
+ - CLAUDE.md exists (6 pts) \u2014 always generate for claude targets
1708
1714
  - AGENTS.md exists (6 pts) \u2014 always generate for codex target
1709
- - Skills configured (8 pts) \u2014 3 skill topics = full points
1715
+ - Skills configured (8 pts) \u2014 generate 3+ skill topics for full points
1710
1716
  - For "both" target: .cursor/rules/ exist (3+3 pts), cross-platform parity (2 pts)
1711
1717
 
1712
1718
  Quality (25 pts):
1713
- - Build/test/lint commands documented (8 pts) \u2014 include actual commands from the project
1714
- - Concise context files (6 pts) \u2014 keep CLAUDE.md under 100 lines (200=4pts, 300=3pts, 500+=0pts)
1715
- - No vague instructions (4 pts) \u2014 avoid "follow best practices", "write clean code", "ensure quality"
1719
+ - Executable content (8 pts) \u2014 include 3+ code blocks with project commands (3 blocks = full points)
1720
+ - Concise config (6 pts) \u2014 total tokens across ALL config files must be under 2000 for full points (5000=4pts, 8000+=low)
1721
+ - Concrete instructions (4 pts) \u2014 every line should reference specific files, paths, or code in backticks. Avoid generic prose.
1716
1722
  - No directory tree listings (3 pts) \u2014 do NOT include tree-style file listings
1717
- - No contradictions (2 pts) \u2014 consistent tool/style recommendations
1723
+ - Structured with headings (2 pts) \u2014 use at least 3 ## sections and bullet lists
1718
1724
 
1719
- Coverage (20 pts):
1720
- - Dependency coverage (10 pts) \u2014 CRITICAL: the exact dependency list is provided in your input. Mention AT LEAST 85% by name in CLAUDE.md. Full points at 85%+.
1721
- - Service/MCP coverage (6 pts) \u2014 reference detected services
1722
- - MCP completeness (4 pts) \u2014 full points if no external services detected
1725
+ Grounding (20 pts) \u2014 CRITICAL:
1726
+ - Project grounding (12 pts) \u2014 reference the project's actual directories and files by name. The scoring checks which project dirs/files appear in your config. Mention key directories from the file tree.
1727
+ - Reference density (8 pts) \u2014 use backticks and inline code extensively. Every file path, command, or identifier should be in backticks. Higher density of specific references = higher score.
1723
1728
 
1724
1729
  Accuracy (15 pts) \u2014 CRITICAL:
1725
- - Documented commands exist (6 pts) \u2014 ONLY reference scripts from the provided package.json. Use the exact package manager.
1726
- - Documented paths exist (4 pts) \u2014 ONLY reference file paths from the provided file tree.
1727
- - Config freshness (5 pts) \u2014 config must match current code state
1730
+ - References valid (8 pts) \u2014 ONLY reference file paths that exist in the provided file tree. Every path in backticks is validated against the filesystem.
1731
+ - Config drift (7 pts) \u2014 config must match current code state
1728
1732
 
1729
1733
  Freshness & Safety (10 pts):
1730
- - No secrets (4 pts), Permissions (2 pts \u2014 handled by caliber)
1734
+ - No secrets (4 pts), Permissions (2 pts \u2014 handled by caliber), Freshness (4 pts \u2014 handled by caliber)
1731
1735
 
1732
1736
  Bonus (5 pts): Hooks (2 pts), AGENTS.md (1 pt), OpenSkills format (2 pts) \u2014 handled by caliber
1733
1737
 
@@ -1739,17 +1743,20 @@ var SKILL_GENERATION_PROMPT = `You generate a single skill file for a coding age
1739
1743
 
1740
1744
  Given project context and a skill topic, produce a focused SKILL.md body.
1741
1745
 
1746
+ Purpose: Skills codify repeating patterns from the codebase so every developer and every LLM session produces consistent code. Study the existing code to extract the exact patterns used, then write instructions that replicate those patterns for new work.
1747
+
1742
1748
  Structure:
1743
1749
  1. A heading with the skill name
1744
- 2. "## Instructions" \u2014 clear, numbered steps. Be specific: include exact commands, file paths, parameter names from the project.
1745
- 3. "## Examples" \u2014 at least one example showing: User says \u2192 Actions taken \u2192 Result
1750
+ 2. "## Instructions" \u2014 clear, numbered steps derived from actual patterns in the codebase. Include exact file paths, naming conventions, imports, and boilerplate from existing code.
1751
+ 3. "## Examples" \u2014 at least one example showing: User says \u2192 Actions taken \u2192 Result. The example should mirror how existing code in the project is structured.
1746
1752
  4. "## Troubleshooting" (optional) \u2014 common errors and fixes
1747
1753
 
1748
1754
  Rules:
1749
1755
  - Max 150 lines. Focus on actionable instructions, not documentation prose.
1756
+ - Study existing code in the project context to extract the real patterns being used. A skill for "create API route" should show the exact file structure, imports, error handling, and naming that existing routes use.
1750
1757
  - Reference actual commands, paths, and packages from the project context provided.
1751
1758
  - Do NOT include YAML frontmatter \u2014 it will be generated separately.
1752
- - Be specific to THIS project \u2014 avoid generic advice.
1759
+ - Be specific to THIS project \u2014 avoid generic advice. The skill should produce code that looks identical to what's already in the codebase.
1753
1760
 
1754
1761
  Return ONLY a JSON object:
1755
1762
  {"name": "string (kebab-case)", "description": "string (what + when)", "content": "string (markdown body)"}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.12.15",
3
+ "version": "1.12.17",
4
4
  "description": "Analyze your codebase and generate optimized AI agent configs (CLAUDE.md, .cursorrules, skills) — no API key needed",
5
5
  "type": "module",
6
6
  "bin": {