@rely-ai/caliber 1.12.17 → 1.12.18

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 +15 -6
  2. package/package.json +1 -1
package/dist/bin.js CHANGED
@@ -1701,8 +1701,9 @@ Skills serve two purposes:
1701
1701
 
1702
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.
1703
1703
 
1704
- Skill topic description MUST include WHAT it does + WHEN to use it with specific trigger phrases.
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/."
1704
+ Skill topic description MUST follow this formula: [What it does] + [When to use it] + [Key capabilities].
1705
+ Include specific trigger phrases users would actually say. Also include negative triggers to prevent over-triggering.
1706
+ Example: "Creates a new API endpoint following the project's route pattern. Handles request validation, error responses, and DB queries. Use when user says 'add endpoint', 'new route', 'create API', or adds files to src/routes/. Do NOT use for modifying existing routes."
1706
1707
 
1707
1708
  The "fileDescriptions" object MUST include a one-liner for every file that will be created or modified.
1708
1709
  The "deletions" array should list files that should be removed (e.g. stale configs). Omit if empty.
@@ -1747,19 +1748,27 @@ Purpose: Skills codify repeating patterns from the codebase so every developer a
1747
1748
 
1748
1749
  Structure:
1749
1750
  1. A heading with the skill name
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.
1752
- 4. "## Troubleshooting" (optional) \u2014 common errors and fixes
1751
+ 2. "## Critical" (if applicable) \u2014 put the most important rules and constraints FIRST. Things the agent must never skip, validation that must happen before any action, or project-specific constraints.
1752
+ 3. "## Instructions" \u2014 clear, numbered steps derived from actual patterns in the codebase. Each step MUST:
1753
+ - Include exact file paths, naming conventions, imports, and boilerplate from existing code
1754
+ - Have a validation gate: "Verify X before proceeding to the next step"
1755
+ - Specify dependencies: "This step uses the output from Step N"
1756
+ 4. "## 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.
1757
+ 5. "## Common Issues" (required) \u2014 specific error messages and their fixes. Not "check your config" but "If you see 'Connection refused on port 5432': 1. Verify postgres is running: docker ps | grep postgres 2. Check .env has correct DATABASE_URL"
1753
1758
 
1754
1759
  Rules:
1755
1760
  - Max 150 lines. Focus on actionable instructions, not documentation prose.
1756
1761
  - 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.
1762
+ - Be specific and actionable. GOOD: "Run \`pnpm test -- --filter=api\` to verify". BAD: "Validate the data before proceeding."
1763
+ - Never use ambiguous language. Instead of "handle errors properly", write "Wrap the DB call in try/catch. On failure, return { error: string, code: number } matching the ErrorResponse type in \`src/types.ts\`."
1757
1764
  - Reference actual commands, paths, and packages from the project context provided.
1758
1765
  - Do NOT include YAML frontmatter \u2014 it will be generated separately.
1759
1766
  - Be specific to THIS project \u2014 avoid generic advice. The skill should produce code that looks identical to what's already in the codebase.
1760
1767
 
1768
+ Description field formula: [What it does] + [When to use it with trigger phrases] + [Key capabilities]. Include negative triggers ("Do NOT use for X") to prevent over-triggering.
1769
+
1761
1770
  Return ONLY a JSON object:
1762
- {"name": "string (kebab-case)", "description": "string (what + when)", "content": "string (markdown body)"}`;
1771
+ {"name": "string (kebab-case)", "description": "string (what + when + capabilities + negative triggers)", "content": "string (markdown body)"}`;
1763
1772
  var REFINE_SYSTEM_PROMPT = `You are an expert at modifying coding agent configurations (Claude Code, Cursor, and Codex).
1764
1773
 
1765
1774
  You will receive the current AgentSetup JSON and a user request describing what to change.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rely-ai/caliber",
3
- "version": "1.12.17",
3
+ "version": "1.12.18",
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": {