跳到正文
cccskills
免费在 GitHub 公开

squire

Use when morphir-scala work needs environment diagnostics or build/network/sandbox unblocking; reference repository management; branch lifecycle refresh after squash-merging a target branch into main; Morphir IR spec/schema sync or export; or task-tracking configuration and beads mode resolution.

中文简介正在准备中。当前显示原文说明。

集成工具Netlify
查看安装方法

包含的文件(33)

  • SKILL.md6.7 KB
  • .gitignore180 B
  • .mill-version19 B
  • mill6.5 KB
  • mill.bat9.7 KB
  • README.md7.6 KB
  • references/branch.md4.4 KB
  • references/cellar.md4.4 KB
  • references/doctor.md5.3 KB
  • references/env.md3.9 KB
  • references/mill-morphir.md1.6 KB
  • references/repo.md7.6 KB
  • references/spec-sync.md10.6 KB
  • references/tracking.md10.9 KB
  • squire1.2 KB
  • squire.bat1.8 KB
  • squire.scala36.8 KB
  • SquireBranch.scala6.4 KB
  • SquireCellar.scala7.4 KB
  • SquireChangelog.scala20.6 KB
  • SquireDoctor.scala13.9 KB
  • SquireEnv.scala16.2 KB
  • SquireModel.scala4.6 KB
  • SquireProcess.scala1.5 KB
  • SquireRepo.scala30.4 KB
  • SquireSchemas.scala25.2 KB
  • SquireSpec.scala35.6 KB
  • SquireTests.scala329.2 KB
  • SquireTracking.scala16.4 KB
  • SquireVersionCorpus.scala3.3 KB
  • test-resources/META-INF/services/kyo.test.Test275 B
  • test-resources/schemas/morphir-ir-v4.json107.1 KB
  • test-resources/schemas/morphir-ir-v4.yaml74.2 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Squire — morphir-scala Dev Environment Assistant

Squire diagnoses and unblocks development environment issues, manages reference repositories and branch lifecycle, and owns task-tracking configuration for the morphir-scala project.

Commands

/squire ai env info

Reports whether the current session is actually sandboxed (JVM network sockets and effective JVM-temp writes) as structured JSON — live-probed, not guessed from CLAUDE_CODE_* env vars. Other skills and build scripts can consume this instead of assuming "running under Claude Code" implies restricted.

Read the full reference before running: → references/env.md

When to invoke: Before deciding whether to use a daemon/server process, a JVM network call, or a JVM-temp-writing tool — or any time you'd otherwise guess sandbox status from environment variables alone.

/squire doctor

Runs a full environment diagnostic and reports actionable fixes for known blockers.

Read the full diagnostic procedure and issue catalogue before running: → references/doctor.md

When to invoke: Any time a Bash tool call fails with a build, network, or sandbox error — especially before retrying the failed command.

/squire mill morphir

Explains the fast source-module route, the published-plugin dogfood route, and focused recovery commands.

Read the full reference before running: → references/mill-morphir.md

When to invoke: When developing a Mill Morphir plugin, generating Morphir IR, testing a fresh published-plugin consumer, or diagnosing plugin/cache/metabuild state.

/squire reference repo

Manages reference repositories under .refs/. Clone external repos, symlink existing local repos, or create git worktrees for ref-based snapshots. A manifest at .refs/manifest.json tracks all entries.

Read the full reference before running: → references/repo.md

When to invoke: When asked to add a reference repo, clone an upstream project, list or check existing references, or when context about an external codebase is needed locally.

Sub-commands: squire reference repo add, squire reference repo list, squire reference repo status, squire reference repo remove

/squire branch refresh

Safely refreshes a remote target branch from origin/main after its target-to-main pull request has been squash-merged. The target defaults to develop; use --dry-run to prove the refresh without pushing.

Read the full reference completely before running: → references/branch.md

When to invoke: After squash-merging an integration branch into main, when the remote target should begin its next lifecycle at the new main tip.

/squire tracking

Owns task-tracking configuration: resolves whether beads (bd) applies to this checkout, supports opting out per contributor, and keeps AGENTS.md/CLAUDE.md pointing at one canonical guidance document rather than accumulating tool-generated blocks.

Beads is optional here — nothing in the build, the test suites, or CI reads .beads/. Never assume it is in use; resolve the mode first.

Read the full reference before running: → references/tracking.md

When to invoke: Before creating or updating a task/issue, at the start of any session where work will be tracked, when asked to opt out of (or back into) beads, and when a bd init/bd setup run has re-added its own guidance block to the agent instruction files.

Sub-commands: squire tracking status, squire tracking sync, squire tracking doctor

Contributor-facing guidance, conventions and opt-out steps live in docs/task-tracking.md.

/squire spec sync and /squire spec export

Round-trips the Morphir IR specification, design documents and JSON schemas between finos/morphir and the knowledge base bundle that mirrors them. spec sync imports upstream's changes; spec export projects local edits back into a reference checkout, runs upstream's own validators, and stops short of committing.

The kb skill owns the mechanism (kb sync status|pull|push|diff); squire owns the Morphir specifics — the repo, the ref, the sparse subtrees, the validators, and the order things run in.

Read the full reference before running: → references/spec-sync.md

When to invoke: When asked to sync, import or export the Morphir spec or schemas, to refresh the mirrored upstream bundle, or to prepare spec changes for a pull request against finos/morphir. Also run spec sync before starting spec work, so the bundle reflects today's upstream.

Sub-commands: squire spec sync, squire spec export

/squire schemas

Generates the Morphir IR JSON schemas from the YAML the knowledge base mirrors, and checks that the two are in step.

mise run schemas:build     # YAML → JSON, into .dev/out/squire/schemas/
mise run schemas:check     # metaschema conformance, then validate every mirrored v4 document
.claude/skills/squire/squire schemas compare --from <dir>

The knowledge base mirrors the YAML only. Upstream generates the .json siblings with website/scripts/yaml-to-json-schemas.js, which runs during its Netlify build and nowhere else — so nothing verifies the committed JSON still matches the YAML, and the generator cannot run in a checkout without npm install. The Scala implementation reproduces that generator exactly using Kyo YAML, with no Node or Bun runtime dependency; schemas compare is the verification upstream lacks, and spec export runs it.

Two things it deliberately does not do. It does not reformat: byte-identical output is what stops the next Netlify deploy rewriting whatever we send, and none of upstream's committed JSON is canonical by jsonschema fmt anyway. And it does not fail on documents that were already failing — at the pinned commit every complete v4 document upstream publishes is rejected by upstream's own v4 schema. That is recorded as a finding in the morphir-ir-v4-draft bundle, not treated as a gate.

When to invoke: When a mirrored schema has been edited, before an export, or when asked whether the IR documents and the IR schemas actually agree.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

beads

免费

Use when working in a repository that uses bd or Beads for durable project task tracking, issue dependencies, blocker management, multi-session handoff, or shared work memory. Trigger when the user asks to find ready work, claim or close tasks, create follow-up work, inspect blockers, recover project context, or choose between local planning and persistent project tracking.

中文简介正在准备中。当前显示原文说明。

finos/morphir-scala172026年10月15日 更新

intent

免费

Manages intent — features, enhancements, bugs and the reasoning behind them — recorded as prose in the knowledge base with a lifecycle. Use when capturing new work, moving work through backlog, refinement or implementation, releasing or cancelling work, or asking what is pending, in flight, or no longer valid.

中文简介正在准备中。当前显示原文说明。

finos/morphir-scala172026年10月15日 更新

kb

免费

Manages the Morphir knowledge base under kb/ — OKF bundles and concept documents. Use when adding content to a bundle, creating a new bundle, checking the knowledge base for conformance or provenance drift, building or querying its SQLite index, managing intent through its lifecycle, recording or reading architectural decisions as Decision Records, or navigating, searching and listing its bundles, concepts and links.

中文简介正在准备中。当前显示原文说明。

finos/morphir-scala172026年10月15日 更新

Use when asked to babysit or watch a PR, when watching an open pull request, after opening or pushing to a PR, or when asked to monitor CI, review comments, merge conflicts, whether a PR is ready to merge, or to trigger a re-review.

中文简介正在准备中。当前显示原文说明。

finos/morphir-scala172026年10月15日 更新

查看 finos 的全部技能

报告此技能的问题