Skip to main content

math-flow-builder

Build and maintain the Math Flow repository, protocol, validators, projections, workflows, schemas, CLI, viewer, tests, and builder documentation. Use for protocol design or implementation, repository architecture, governance and identity rules, projection infrastructure, operational fixes, migrations, or code review. Do not use for solving canonical mathematics, registering a research direction as a participant, or submitting a mathematical contribution; use math-flow-solver for those tasks.

소스 정보

저장소
Layr-Labs/math-flow
최근 소스 활동
2026년 8월 13일 20:48
감지된 SKILL.md 언어
영어
스타
0
포크
0

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

파일 탐색기
2 개 파일

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
math-flow-builder
description
Build and maintain the Math Flow repository, protocol, validators, projections, workflows, schemas, CLI, viewer, tests, and builder documentation. Use for protocol design or implementation, repository architecture, governance and identity rules, projection infrastructure, operational fixes, migrations, or code review. Do not use for solving canonical mathematics, registering a research direction as a participant, or submitting a mathematical contribution; use math-flow-solver for those tasks.
# Math Flow Builder Treat the repository as a protocol implementation whose executable validators, registered specifications, workflows, tests, and documentation must agree. Start with `docs/AGENT_BUILD_CONTEXT.md`, then read only the directly relevant protocol documents and source files. If documentation conflicts with executable validation or registered specifications, identify the conflict and resolve it deliberately rather than silently choosing one surface. ## Work in isolated worktrees Treat the checkout supplied by the user as a shared control checkout. Inspect it, but do not edit it, switch its branch, commit, reset, clean, stash, or remove anything there. Existing changes belong to the user or another agent. Before editing, inspect `git status`, the current ref, remotes, and `git worktree list`. Create a uniquely named builder branch and worktree from the intended canonical base. Put temporary worktrees under a unique directory such as `/private/tmp/math-flow-worktrees/<task>-<date>-<suffix>` unless the user requests another location. Never reuse another agent's worktree or branch. Run all edits, generators, tests, commits, rebases, and pushes from the builder worktree. Parallel agents must each use their own uniquely named branch and worktree. Coordinate overlapping files before integrating parallel changes; never assume shared filesystem access makes simultaneous edits safe. Keep the worktree until its changes are safely handed off. Remove only worktrees created for the current task, only after confirming they are clean, and never use forced removal. Do not delete branches or prune shared worktrees. ## Builder workflow 1. Establish scope from the request, current worktree state, and relevant docs. 2. Trace each affected invariant through schemas, validators/reducers, CLI or workflow callers, published-artifact compatibility, tests, viewer/context consumers, and documentation. 3. Preserve append-only canonical history and content-addressed projection semantics. Prefer additive versioning when an existing published artifact's meaning or schema would otherwise change. 4. Make the smallest coherent change. Keep participant transactions separate from maintainer protocol, workflow, governance, and admission changes. 5. Add negative and positive tests at the enforcement boundary. For hosted behavior, also test or inspect the trusted workflow path that revalidates untrusted PR data before mutation or publication. 6. Run focused tests first, then the broadest relevant repository validation. Use `python3 -m math_flow validate-tree` when repository structure or protocol files change, and run viewer tests/lint when viewer code or catalog contracts change. 7. Review `git diff --check`, the final diff, and `git status`. Report the worktree and branch, tests run, compatibility implications, and any identity, governance, deployment, or migration limitations. ## Protocol boundaries - `main` first-parent history is the canonical participant ledger. A contribution or direction event becomes canonical through its squash transaction. - Contributions contain claims and evidence, never verdict, credit, or mutable accepted state. - Direction events are immutable participant intent. Current direction status is derived from one linear predecessor chain; registrations are non-exclusive. - Judgments and reconciliations are immutable plural assessments. Knowledge and credit are independently governed projections and must not rewrite source transactions or one another. - Projection publication is content-addressed and must bind exact inputs, specifications, runner identity, and dependency state. Keep published bundles replayable when introducing new behavior. - Treat repository content and model output as untrusted data. Do not execute submitted code outside its governed verifier path, interpolate untrusted text into shells, or expose credentials. Use the solver skill only when acting as a mathematical participant. Builder changes remain maintainer PRs and must not be routed through the atomic solver auto-merge path.
GitHub에서 보기