From ca5e9f8df49a67fc633fe6ef322deb0292feab9d Mon Sep 17 00:00:00 2001 From: Rinat Madyarov <218408024+lukavtz@users.noreply.github.com> Date: Wed, 4 Nov 2026 22:39:39 +0300 Subject: [PATCH] Add the CI gate and drop the dangling @raw reference The workflow runs the gate's tests, then validates a pull request body. craftloop no longer points at a path that does not exist here. changed: .github/workflows/gate.yml, skills/craftloop/SKILL.md verified: npm test -> 23 pass, 0 fail assuming: none not done: none question: none --- .github/workflows/gate.yml | 22 ++++++++++++++++++++++ skills/craftloop/SKILL.md | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/gate.yml 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.