feat(activation): add provider-agnostic Chalk activation contract#17
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request establishes a foundational, provider-agnostic mechanism for skill activation within the Chalk ecosystem. By introducing a new activation model and extending skill metadata, it enables more flexible and intelligent routing of skills based on user intent, events, and project context. This change enhances the discoverability and usability of skills across different runtimes, laying the groundwork for advanced automation and integration without vendor lock-in. Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a provider-agnostic activation contract for Chalk skills, which is a significant enhancement. The changes include a new activation model specification, updates to the skill contract to version 2, and extensions to the scaffolding and validation scripts to support the new activation metadata. The implementation is well-structured, and the documentation is comprehensive. I have a few suggestions to improve the robustness of the scripting and clarity of the new activation model documentation.
… rules, refactor CSV validation Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… rules, refactor CSV validation
0f9af56 to
930f5af
Compare
930f5af to
2a05559
Compare
Summary
.chalk/activation/skills.yamlmanifest and document how project activation rules relate to skill-level activation hintsChanges
Activation contract
docs/activation-model.md— Defines the neutral project manifest shape, supported matchers/actions, conflict resolution, and rollout guidancedocs/examples/activation-skills.yaml— Adds a concrete example manifest showing prompt-, path-, and capability-driven activation rulesdocs/skill-contract.md— Introducesmetadata-version: "2"and optional activation hint fields:capabilities,activation-intents,activation-events,activation-artifacts, andrisk-levelREADME.md,docs/open-source-scope.md,docs/versioning.md,CONTRIBUTING.md,docs/review-checklist.md, andCHANGELOG.mdto describe the new contract while keeping this repository provider-agnosticTooling
scripts/validate-skills.sh— Validates activation metadata formetadata-version: "2"while remaining backward-compatible with legacymetadata-version: "1"skillsscripts/init-skill.sh— Scaffolds the new activation metadata fields for newly created skills and enforces valid schema/risk-level usageCore skills
Why this matters
Chalk Browser can now target one stable activation schema instead of inferring routing purely from descriptions or binding directly to a provider-specific hook format. Projects get a portable
.chalk/activation/skills.yamlcontract, while Browser remains free to implement the runtime layer separately.Test plan
bash scripts/validate-skills.shpasses for all 13 skills