Commit cd1a4e0
authored
Add Sui Move support to develop-secure-contracts (#11)
* develop-secure-contracts: add Sui Move support (#422)
Extend the cross-ecosystem develop-secure-contracts skill with Sui Move,
delivering the library-integration capability for Sui (no separate skill,
consistent with the other ecosystems).
- detect `.move` in the project file-glob search
- resolve dependencies from Move.toml `r.mvr` (source under ~/.move/ and the
build mirror; `sui move build --doc` for code docs)
- add a Sui Move row to the repository/documentation lookup table
- note that Sui is deliberately not in the fixed category grid — discover its
package set from llms.txt -> catalogs -> package READMEs/examples
- add a Sui Move Integration Notes section: no CLI generator (use pattern
discovery + examples), and route conventions to their sources of truth
(ARCHITECTURE.md, STYLEGUIDE.md, package README, docs site / API reference,
and the setup-sui-contracts skill) rather than restating them
Methodology-first and discovery-driven: specifics that drift (slugs, module
lists, patterns) are read from the library's own metadata, not hardcoded.
* develop-secure-contracts: align Sui dep/docs paths with setup skill
Address PR review: make the Sui dependency-source and code-docs locations
precise and consistent with setup-sui-contracts — read exact signatures from
build/<pkg>/sources/dependencies/<move_package_name>/, and note dependency
docs land under build/<pkg>/docs/dependencies/<move_package_name>/.
* develop-secure-contracts: generic --build-env; run the full quality gate before finishing
- Use `--build-env <env>` (required whenever there are MVR deps) rather than
enumerating `testnet|mainnet` (PR review).
- Note to run the project's full quality gate (build, test, prettier-move,
lint) before finishing.
* develop-secure-contracts: distinct dep/project placeholders; route formatter to SSOT
Address PR review:
- Disambiguate `<pkg>`: use `<move_package_name>` for the Move.toml dependency
key and `<project_package>` for the `build/.../` output directory.
- Quality-gate note no longer names a formatter; defer the exact commands and
formatter to the setup-sui-contracts skill (single source of truth) instead
of restating them.
* develop-secure-contracts: reach the API reference via the catalog Docs link
Address PR review: drop the ambiguous `.../<major>.x/api/<package>` path
(the URL segment isn't the Move package name); route to the canonical API
reference through each package's catalog `Docs` link instead.
* develop-secure-contracts: add Sui pattern-discovery test case (3.6)
Fresh-subagent case: integrate OZ RBAC into an existing Sui Move module —
verifies discovery from library metadata/examples (no CLI generator), import
via MVR (not copy), and reading installed dependency source for signatures.
* develop-secure-contracts: collapse the Sui section to a single llms.txt pointer
Addresses review feedback that the Sui-specific notes were too verbose for a
shared multi-ecosystem skill and polluted context for non-Sui readers. Replace
the "Sui Move Integration Notes" section and the grid paragraph with one concise
note that routes to llms.txt (the single entry point) + the setup-sui-contracts
skill, and trim the Step 1 dependency-location bullet to match its peers.
* develop-secure-contracts: drop stray `sui move build --doc` from test 3.6
The example omitted `--build-env`, which fails on MVR deps. The develop-secure
pattern-discovery path reads the installed source via the build mirror; the
`--doc` generation flow belongs to the setup-sui-contracts skill, so don't
duplicate it here.
* develop-secure-contracts: use MVR slug placeholder in test 3.6 setup
Genericize the concrete `@openzeppelin-move/access` slug to the
`@openzeppelin-move/<slug>` placeholder form used elsewhere in the skills, so
the scenario doesn't pin a specific registry slug that could drift.1 parent abf2a54 commit cd1a4e0
2 files changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
252 | 266 | | |
253 | 267 | | |
254 | 268 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
81 | 83 | | |
82 | 84 | | |
83 | 85 | | |
| |||
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
| 142 | + | |
140 | 143 | | |
141 | 144 | | |
142 | 145 | | |
| |||
153 | 156 | | |
154 | 157 | | |
155 | 158 | | |
| 159 | + | |
| 160 | + | |
156 | 161 | | |
157 | 162 | | |
158 | 163 | | |
| |||
0 commit comments