The Integration section named the Chrome tools `mChild__claude-in-chrome__*`,
which matches no real tool, so readers following it would look for tools that
do not exist. Use the real `mcp__claude-in-chrome__*` prefix in the English
skill and the zh-CN mirror, and rebind the skill-triggers registry digest for
the changed skill source.
Carried forward from the browser-qa correction in #2492.
Co-authored-by: eric0891230 <eric0891230@gmail.com>
scan.sh and quick-diff.sh name each per-skill record "$i.json" and merge
them with a "$tmpdir"/*.json glob. The glob sorts names as text, so once a
scan finds ten or more skills 10.json lands before 2.json and the output
no longer follows the NUL-sorted discovery order. Zero-pad the record
names so glob order matches insertion order, and pin both scripts with a
twelve-skill regression test. Rebind the skill-triggers registry digest
for the changed skill sources.
Carried forward from the ordering fix in #2729.
Co-authored-by: Nathan Oliver <nathan.oliver@emecogroup.com>
Add a TestCase example that uses captureOnCommitCallbacks(execute=True)
and asserts the Celery delay call, note the pytest-django fixture and
when TransactionTestCase is appropriate, wrap the eager-mode request
example so post-commit dispatch actually runs, mention
apply_async_on_commit(), and pin the examples in the skill test.
A registered v1 project has CONTEXT.md but no context.json; init wrote
an empty history over that CONTEXT.md. Stop and point to /ck:migrate
while CONTEXT.md is still there, and only start fresh when neither file
exists. A context whose sessions array holds a null entry passed the
guard, then renderContextMd threw after context.json was rewritten; now
every session entry must be an object before anything is written.
Rebind the skill triggers manifest to the new registry digest.
Refs #3922
With both spellings of a folder registered, list marked both rows as
the current project while save and resume use only the exact one. Pass
the key findProject() selects to renderListTable(), which compares it
exactly again. Rebind the skill triggers manifest to the new registry
digest.
Refs #3924
A context.json that parses but has no sessions array (for example a
JSON array at the root) passed the guard, and init wrote an empty
context over it. Require a sessions array before reusing the context.
Rebind the skill triggers manifest to the new registry digest.
Refs #3922
When a registered project's context.json exists but cannot be parsed,
loadContext() returns null and init wrote a fresh context over the file,
destroying history that could still be recovered by hand. Stop with a
message and leave the files alone instead.
Tests: forgetting a project renamed by init leaves no context directory
behind, and init over an unreadable context.json exits 1 without
touching it. Rebind the skill triggers manifest to the new registry
digest.
Refs #3922
Windows paths are case-insensitive, so C:/Work/App and c:\work\app name
the same folder. Add samePath(), which lowercases resolved paths on
win32 only, and use it for the registry lookup, the list marker and the
resume cd hint. The SessionStart hook now uses findProject() instead of
indexing the registry with a key that may be undefined.
Tests: the Git Bash registration is found from PowerShell and from a
lower-case path (init, save, list, resume with the saved session,
SessionStart); resume and forget act on the exact registration when
both spellings exist; SessionStart ignores a registration that does not
match. Rebind the skill triggers manifest to the new registry digest.
Refs #3924
projects.json is keyed by PWD or process.cwd(), and lookups compared
that string exactly. On Windows, Git Bash passes C:/... and PowerShell
gives C:\..., so a folder registered from one shell was unknown in the
other and init registered it a second time. Match registrations by
exact key first, then by resolved path, in save, init, resume, list and
the SessionStart hook, and rebind the skill triggers manifest to the
new registry digest.
Fixes#3924
save.mjs --init wrote a new context with sessions: [] and a fresh
createdAt over the existing one, so running /ck:init again in a
registered folder deleted its session history. Carry both over from the
registered context, keep its context directory when the name changes,
and update only the project details. Rebind the skill triggers manifest
to the new registry digest.
Fixes#3922
DESTRUCTIVE_SQL matched only DROP TABLE, DELETE FROM and TRUNCATE.
`psql -c "DROP DATABASE prod"`, `DROP SCHEMA public CASCADE` and
`ALTER TABLE users DROP COLUMN email` went to the routine gate instead
of the destructive gate, even though each loses at least as much data
as DROP TABLE.
Add DROP DATABASE, DROP SCHEMA and an ALTER TABLE ... DROP COLUMN arm
to the phrase check. The DROP COLUMN arm stops at `;` so it never
matches across two statements. It requires the COLUMN keyword so
ALTER COLUMN ... DROP DEFAULT / DROP NOT NULL stay passive. Existing
literal and quote stripping keeps SQL strings, commit messages and
echo mentions passive.
Update the gateguard trigger list (en, ja-JP, zh-CN) and rebind the
skill-triggers registry digest for the SKILL.md body edit. Skill
descriptions and triggers are unchanged.
- SessionsController inherits ApplicationController's after_action
:verify_authorized but never calls authorize, so sign-in and sign-out raised
Pundit::AuthorizationNotPerformedError after running instead of redirecting
- Shows the explicit skip_after_action beside the callback that needs it
- blob.content_type is derived via Marcel::MimeType.for, which keeps the
client's declared type when the bytes match no known magic; opaque bytes
declared image/png are stored as image/png with identified? true
- Active Storage uploads on save, so a model validation runs before the bytes
exist; the example now uploads explicitly, verifies the stored bytes, and
attaches only what passed
- Covers both entry points — create_and_upload! for form uploads, find_signed!
for direct uploads — and fails closed when the object is missing or pending
- Regenerates the skill-triggers registry digest, which covers skill content
- rails_blob_url and url_for(attachment) are permanent references that redirect
to a short-lived service URL, so the file stays reachable past the expiry
- Serves user-scoped files from a controller that authorizes each request
before redirecting to a short-lived private-service URL
- The HMAC covers the request body, not the headers, so deduplicating on
X-Delivery-Id let a replay vary that header and queue the work again
- Uses the event id parsed from the signed body as the dedupe key
- rules/ruby/security.md calls for content type, extension, size, and storage
destination; the example and checklist covered only detected type and size
- Adds an extension allowlist, a private-service attachment with signed URLs,
and updates the verification checklist to match
- Signature verification proves authenticity, not freshness; an identical
signed delivery queued another job, repeating any non-idempotent effect
- Records the provider's delivery id behind a unique index and returns early
once processed, and notes that perform must be idempotent for retries
Adds a rails-security skill covering production configuration,
authentication and session rotation, authorization, strong parameters,
SQL injection, XSS and output escaping, CSRF, file uploads, API security,
credentials, untrusted boundaries, and dependency scanning.
Fills the Rails gap alongside the existing laravel-security, django-security,
and springboot-security framework skills. Defers decisions to
rules/ruby/security.md and focuses on the how, per the rules-vs-skills split.
Registers skills/rails-security in the framework-language install module,
agent.yaml, the package.json files list, the ruby entry in
config/project-stack-mappings.json, and the plugin and marketplace manifests.
Adds the reciprocal skill reference to rules/ruby/security.md, matching how
the python, php, and java security rules point at their framework skills.
Updates the catalog count to 294 across the documented surfaces, and bumps
registryDigest and coverage.skills in the skill-triggers context pack by hand:
scripts/dev/generate-skill-triggers.js requires Codex auth to regenerate, and
no new triggers are introduced, so triggersDigest is unchanged.