fix(icp-cli): prevent recipe and frontend config hallucinations#121
Merged
fix(icp-cli): prevent recipe and frontend config hallucinations#121
Conversation
Closes #120 - Enrich the "Available recipes" table with exact versioned type strings and config fields so agents don't guess bare names or wrong versions - Add releases page link for agents to verify latest recipe versions - Surface critical values from reference files (package versions, outDir, mode guard) directly in the main skill so agents get them without needing to read the reference files
Skill Validation ReportValidating skill: /home/runner/work/icskills/icskills/skills/icp-cliStructure
Frontmatter
Markdown
Tokens
Content Analysis
References Content Analysis
Contamination Analysis
References Contamination Analysis
Result: passed Project Checks |
viviveevee
approved these changes
Mar 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #120
Summary
@icp-sdk/core>= 5.0.0,outDir: "./src/bindings",command === "serve"mode guard) directly in the main skill bodyWhy this is sufficient
The issue reported four hallucination cases:
@dfinity/motoko@v3.0.0) — the skill already had correct type strings in config examples, but the "Available recipes" table listed them without versions. An agent scanning that table could still guess. The enriched table now redundantly provides exact strings.candidfield — already covered by pitfall#12and the config examples. No change needed.icp-cli-templates, fixed by PR SPA? #23. Not a skill issue.@icp-sdk/coreversion,outDir, and mode guard — the reference files had this information, but the eval agent (Sonnet) didn't read them. Surfacing the critical values as one-liners in the main skill fixes this without duplicating the full reference content.Eval results
The "Full-stack Motoko hello-world with React frontend" eval (the exact scenario from #120) went from 6/9 → 9/9 after these changes. The three previously failing checks (
@icp-sdk/coreversion,outDirpath, mode guard) now all pass.