chore(skills): sync skills to miden v0.15 - #52
Conversation
|
The project template lives in the compiler repo now at https://github.com/0xMiden/compiler/tree/next/extra/templates/project. Please move this PR over to the compiler repo. |
|
Thanks for the info. Will mirror the PR there. Is the template code at the compiler repo migrated for v16? The packaging seems to be migrated, has the code been migrated too? Regarding how to structure given that this repo is currently used as a submodule for the agentic-template, and the agentic-template depends on it: I think it could make sense to create a script that pulls the template from the release file and records the version. Using a github submodule won't anymore since submodules cannot point at subdirectories of repos. Do you think that will work fine or do you have another idea? |
It seems that agent skills from the new project template should be extracted into a separate toolchain component and managed (installed, updated, etc.) accordingly. Then, |
|
We can easily make them a separate component. Only real question is what should happen when the component is installed - they would just be assets installed in the toolchain directory, so either that's a fine location for them, or something will have to then copy them into your project. |
Good question! I think the user would most likely want to symlink |
Overview
This PR brings the six
.claude/skillsfiles that overlap with0xMiden/agent-toolsup to their Miden v0.15 state, so the template's skill guidance matches the code that #51 already migrated to v0.15. It ports the v0.15 substance from the agent-tools skills (source-grounded, Codex-audited) while keeping every example, path, and cross-link that is specific to this template. Doc-only: no code, config, or test changes.Note on base: the sync was originally planned to stack on
migrate-protocol-v015, but #51 has since merged, so this targetsmaindirectly. The skill files are identical on both, so the diff is the same either way.Key Changes
Six skills updated to v0.15, each keeping the template's own worked examples (the counter contract + increment note, the
contracts/andintegration/paths), rather than agent-tools' bank-account examples:miden-conceptsNoteStorage(Vec<Felt>); fallibleFelt::new; standard components (BasicWallet,FungibleFaucet::builder(),NoAuth,AuthSingleSig/Falcon512Poseidon2)rust-sdk-pitfallscross-linkfrontend-pitfallslinkrust-sdk-pitfallsAsset;note::build_recipient;NoteType1-bit encoding;active_note::get_storage()as_canonical_u64security rules; counter examples;contracts/linksrust-sdk-source-guidev0.15.3, clientv0.15.2, compilerv0.9.0,miden 0.13,cargo-miden 0.9); error-translation tablecargo test -p integration --release; repo-exploration workflowmake test/nextestguidance not relevant herelocal-node-validationscripts/start-test-node.sh;.sqlite_storeextension-trait footgun; connect-time version negotiationintegration/srcpaths;setup_local_client; counter /increment_countexample; port57291;miden-client-clicross-linkrust-sdk-patterns#[account(...)]wrapper for notes and tx-scripts; slot-name derivation; corrected native-function signatures;Asset::new; fallibleFelt::new; two-place cross-component depsp2id-notecompiler examplemiden-bankexample links; thecrate::bindings::Accountexamplerust-sdk-testing-patternsPartialNoteMetadata/Note::new; tx-scriptfrom_parts;InitStorageDataseeding footgun;NoteScript::root()newtypecounter_test.rsflow verbatim (MockChain builder,insert_map_entry,add_account_from_builder,prove_next_block,get_map_item);helpers.rs/increment_count.rsreferencesRationale
rust-sdk-patterns: 21,rust-sdk-testing-patterns: 29) with zero bank code in either.rust-sdk-source-guidestill points at the externaltutorials/examples/miden-bankapp, because mapping external repos for advanced patterns is that skill's whole purpose and those pointers were already present in the template (this is not the counter being clobbered by bank code).Notes
contracts/andintegration/; version pins are the v0.15 set (miden = "0.13",cargo-miden = "0.9", the0.15client stack, protocolv0.15.3, compilerv0.9.0), with no stray0.14literals.SKILL.mdfiles.miden-client-cliand every other skill are untouched.Follows #51 (now merged into
main).