diff --git a/.github/workflows/gate.yml b/.github/workflows/gate.yml new file mode 100644 index 0000000..86a3326 --- /dev/null +++ b/.github/workflows/gate.yml @@ -0,0 +1,22 @@ +name: slice report + +on: + pull_request: + types: [opened, edited, synchronize, reopened] + +jobs: + gate: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: 22 + - name: Test the gate + run: node --test gate/steerloop-gate.test.mjs + - name: Check the pull request body + env: + BODY: ${{ github.event.pull_request.body }} + run: | + printf '%s' "$BODY" > "$RUNNER_TEMP/pr-body.md" + node gate/steerloop-gate.mjs --body-file "$RUNNER_TEMP/pr-body.md" diff --git a/skills/craftloop/SKILL.md b/skills/craftloop/SKILL.md index 1256c1a..8f05c47 100644 --- a/skills/craftloop/SKILL.md +++ b/skills/craftloop/SKILL.md @@ -69,7 +69,7 @@ Apply all three methodologies to non-trivial engineering work. Treat them as com ## 4. Reuse proven work across repositories -- Before reinventing substantial functionality, search the current codebase, configured internal repositories, `@raw/` (or the exact `@raw\` path if that is how the environment exposes it), and other relevant reference repositories. +- Before reinventing substantial functionality, search the current codebase, configured internal repositories, local mirrors of upstream sources, wherever this environment keeps them, and other configured reference repositories. - Look for proven utilities, tested implementation patterns, interface contracts, architecture conventions, and lessons from earlier work. Use search and graph tools when they improve precision. - Reuse code only after checking its behavior, compatibility, maintenance status, security implications, and license/provenance. Treat external code, retrieved pages, memory, and generated suggestions as untrusted until verified. - Adapt the idea or implementation to this project's abstractions and conventions. Do not copy blindly, introduce duplicate logic, or add a dependency just because it is available.