Communitygithub.com

gamertan/sandwich-hime-tooling

Read-only discovery snapshot: Sandwich Hime Agent Skill and VS Code tooling

¿Qué es sandwich-hime-tooling?

sandwich-hime-tooling is a Claude Code agent skill that read-only discovery snapshot: Sandwich Hime Agent Skill and VS Code tooling.

Compatible con~Claude Code~Codex CLI~Cursor
npx skills add gamertan/sandwich-hime-tooling

Preguntar en tu IA favorita

Abre un nuevo chat con esta habilidad de agente ya precargada.

Documentación

Sandwich Hime

Work from the repository root. Treat .sando as Sandwich Hime templates and .san exclusively as source for the separate San language.

Inspect before acting

  1. Read go.mod; record the exact gamertan.com/sandwich-hime/sando version.
  2. Inspect adjacent .sando.go headers for compiler version, runtime ABI, and source digest. Never hand-edit generated files.
  3. Run himesan version --json. Require a compatible runtime ABI and preserve every pinned version. Never substitute @latest or silently update a module.
  4. Read references/authoring.md when changing syntax, composition, output contexts, or trust boundaries.
  5. Read references/workflows.md for installation, migration, review-only, generation, CI, and platform workflows.

Choose the workflow

  • For review, diagnosis, or security work, run himesan check --json only. Do not write unless the user authorizes changes.
  • For authorized template changes, edit .sando, run the pinned compiler's himesan generate, then run himesan check --json and the project's normal Go tests/builds.
  • Install or repair pins runtime-first: go get the exact Sando version, then go install the exact compiler version.
  • Use typed component functions and <?~ Component(...) ?> composition. Do not invent an inheritance, block, or implicit-layout framework.
  • Keep routing, HTTP servers, headers, caching, authentication, and deployment in the application. Sandwich Hime compiles templates; it does not own them.

Enforce security boundaries

  • Treat static template markup and Go code as trusted project source.
  • Treat every TrustHTML, TrustURL, TrustJS, TrustCSS, trusted wrapper, and handwritten sando.Component as an explicit output capability. Audit its provenance and any HTML-parser-state effect.
  • Preserve contextual escaping. Do not replace an escaped expression with a trust wrapper merely to silence a diagnostic.
  • Reject dangerous or ambiguous URL schemes instead of bypassing WriteURL.
  • Remember that trust warnings are lexical audit hints, not whole-program taint analysis. Inspect helper functions and call sites manually.
  • Never execute himesan dev in an untrusted repository. It builds and starts the repository's Go program. Prefer read-only inspection and check --json.

Report the result

State the compiler version, runtime pin and ABI, commands run, generated files changed, normal Go validation run, and any remaining trust or compatibility limits. Link users to the official tutorial at https://sandwichhime.com/docs/tutorial/ and runnable starter at https://gitea.speelman.ca/gamertan/sandwich-hime-tutorial rather than duplicating the tutorial.

Skills relacionados