Repository navigation
feat(core): disclose and load skills with their directory and arguments - #496
Conversation
…ts (plan F) - the skill index tells the model to load_skill a matching skill before acting - a loaded skill states its directory, that relative paths resolve against it, and lists the files beside it - $ARGUMENTS is replaced by /name's text or load_skill's new arguments field - a top-level front-matter name: names the skill - .agents/skills is disclosed; a name keeps only its highest tier, so copies of .qq/skills are dropped - global root at <config>/skills (~/.config/qq/skills) - the rendered index is capped at 8 KiB; unlisted skills stay loadable - run-skill smoke scenario
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f7fec7999
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Can't wait for the next one! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Change
Plan section F (skills).
load_skillbefore acting when a task matches a skill's description. The text lives inworkspace/skills.rs, not the prompt body. The agent prompt version goes to 28.read_fileworks on them.$ARGUMENTSis replaced by the text after/name, or by a new optionalargumentsfield onload_skill.name:names the skill. Invalid, reserved, and nested keys are ignored..agents/skillsis now disclosed to the model. Each name keeps only its highest-precedence source (workspace.qq/and packs, then global, then.agents/and.claude/), so a mirrored.qq/skillscopy is listed once..claude/stays/name-only.<config>/skills(~/.config/qq/skillson Linux). A symlinked directory is followed, and creating it later recompiles the plan.Verification
cargo nextest run -p qq-core -E 'test(/skill|guidance|pack/)'passes.a_full_index_drops_lower_tiers_before_native_skillsfails with the precedence sort removed.a_model_loads_a_matching_skill_with_arguments_and_reads_the_script_beside_it. The model callsload_skill {"name":"greet","arguments":"Ada"}and gets back the directory, the listedscripts/greet.sh, andRun scripts/greet.sh Ada., then reads the script.qq-host:global_skills_come_from_the_configuration_directory.run-skill, on the real binary:cargo xtask smoke --only run-skillpasses. The script beside the skill runs throughexecand printshello Ada. On Windows it is read instead of run.cargo xtask checkon99155830: fmt, lint and clippy pass. The test gate failed only on session tests that hitElapsedtimeouts while the machine was at load ~20. Each passes when rerun alone (edit_approvals_carry_the_diff_preview_and_apply_after_approvalon the last run).Known impact
.agents/skillsnow have those skills listed in the system prompt.SkillSummary.sourcedocs mentionglobal:skills/.... No wire shape change.xtask/src/legacy-sleeps.txt: five existingqq-hostentries shift one line. No new sleeps.