Keep paths as JSON keys throughout aggregation so literal backslashes and newlines cannot change which skill receives a read. Count both usage windows together and preserve the distinction between unknown usage and zero reads.
Address the second round of review findings:
- Cache: trust an entry only while it is newer than the repository .git/config
as well as while git reports the stored origin, so a core.worktree change
that moves the root is not served stale.
- observe.sh: emit observer.enabled as a literal true or false so a value
containing a newline cannot shift the fields that follow.
- Tests: remove GIT_DIR, GIT_WORK_TREE, GIT_INDEX_FILE, GIT_COMMON_DIR and
GIT_PREFIX from the detection test environment; add a config-change test and
an observer.enabled newline test. Refresh the registry digest.
`_python_install_manager_launcher` and `resolve_python_cmd` only wrapped the
new `_clv2_pick_*` helpers for printing and nothing calls them any more
(shellcheck SC2329). Refresh the registry digest for the script change.
Address the review findings on the observe hook trim:
- Cache entries store the credential-stripped origin detection read, and a hit
compares it with `git remote get-url origin`, so included, global and
GIT_CONFIG_* origins and a config change during detection are all caught.
- Keep the payload cwd byte for byte (a directory name may hold a newline).
- Follow a symlinked python stub outside WindowsApps on Windows-like shells.
- Run housekeeping once a day from its own per-project marker, independent of
the detection cache.
migrate.mjs dropped standard numbered list items ("1. ...", "10. ...")
because parseBullets() filtered with /^[-*\d]\s/ before stripping
dot-suffixed prefixes, failed to extract any section from CRLF
CONTEXT.md files, and fell through to overwrite an existing
context.json when JSON parsing failed or version was not 2.
Require a period after numbered-list digits in BULLET_RE so ordinary
text starting with a year or count is not parsed as a bullet, preserve
non-list prose alongside bullet/numbered lines in parseLeftOff(),
normalize CRLF line endings when reading CONTEXT.md, and refuse to
overwrite an unreadable or non-v2 context.json. Rebind the skill
triggers manifest to the new registry digest.
Fixes#3983
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>
The context registry digest covers the target list, so adding the
mistral-vibe target on current main changes it. The trigger phrases are
unchanged; only registryDigest is updated so validate-context-profiles
accepts the manifest.
The django-celery references link to docs.celeryq.dev, which the pi/core
safety scan rejects as a non-allowlisted host. Allow the documentation
host and regenerate pi/core so the shipped skill matches its source.
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>
Resolve conflicts with grok target and repair source-root changes:
keep both antigravity-home and grok targets, combine main's repair
source root with the PR's trusted-root selection, and rebind the
skill-trigger registry digest to the merged install registry.
- 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
- laravel-security, django-security, and springboot-security all live in the
security module; rails-security was registered under framework-language
- Installs selecting the security profile or capability:security received the
other framework security skills but not the Rails guidance
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.