feat: agent-specific skill loading instructions #44
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Implements agent-specific skill loading instructions in config files. The usage template now dynamically generates the correct invocation command based on the agent type.
Changes
config_sync.py_generate_usage_template()function for dynamic templatesconfig_sync.py_build_skills_section()and_merge_skill_into_section()with agent paramsconfig_sync.pyforce_extendedparameter for--force-configsupportinstaller.pyforce_configto sync functions for extended instructionsread_cmd.py--agentnot specifiedLOAD_SKILLS.mdAgent-Specific Behavior
skilz read <skill-name>(no --agent flag)skilz read <skill-name> --agent codexskilz read <skill-name> --agent opencodeskilz read <skill-name> --agent geminiskilz read <skill-name> --agent aider+ extended instructionsskilz read <skill-name> --agent qwen+ extended instructionsRule: Claude with
native_skill_support="all"gets no--agentflag. All others include--agent {name}.Extended Instructions: Agents with
native_skill_support="none"automatically get step-by-step guidance.Force Extended Instructions (--force-config)
When
--force-configis used, extended step-by-step instructions are included regardless of the agent'snative_skill_supportsetting. This is useful for:Example:
skilz install my-skill --agent gemini --force-config # GEMINI.md will include extended step-by-step instructionsFallback Search Order
When
skilz read <skill-name>is called without--agent:.claude/skills/first.skilz/skills/(universal).gemini/skills/.opencode/skills/.codex/skills/Test Plan