Skip to content

feat(activation): add provider-agnostic Chalk activation contract#17

Merged
breadoncee merged 4 commits into
mainfrom
feat/chalk-activation-contract
Mar 16, 2026
Merged

feat(activation): add provider-agnostic Chalk activation contract#17
breadoncee merged 4 commits into
mainfrom
feat/chalk-activation-contract

Conversation

@breadoncee

@breadoncee breadoncee commented Mar 16, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Define a neutral Chalk activation contract for project-level skill routing without introducing provider-specific runtime behavior
  • Add an example .chalk/activation/skills.yaml manifest and document how project activation rules relate to skill-level activation hints
  • Extend validation and scaffolding to support activation metadata across the shipped Chalk skills

Changes

Activation contract

  • docs/activation-model.md — Defines the neutral project manifest shape, supported matchers/actions, conflict resolution, and rollout guidance
  • docs/examples/activation-skills.yaml — Adds a concrete example manifest showing prompt-, path-, and capability-driven activation rules
  • docs/skill-contract.md — Introduces metadata-version: "2" and optional activation hint fields: capabilities, activation-intents, activation-events, activation-artifacts, and risk-level
  • Repo docs — Updates README.md, docs/open-source-scope.md, docs/versioning.md, CONTRIBUTING.md, docs/review-checklist.md, and CHANGELOG.md to describe the new contract while keeping this repository provider-agnostic

Tooling

  • scripts/validate-skills.sh — Validates activation metadata for metadata-version: "2" while remaining backward-compatible with legacy metadata-version: "1" skills
  • scripts/init-skill.sh — Scaffolds the new activation metadata fields for newly created skills and enforces valid schema/risk-level usage

Core skills

  • Adds activation hints to the shipped core skills so a future Chalk Browser router can reason about them without parsing prose only
  • Keeps the hints broad and reusable instead of baking in project-specific routing logic
  • Keeps runtime routing, adapters, and provider-specific execution out of this repo; this PR defines the portable contract only

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.yaml contract, while Browser remains free to implement the runtime layer separately.

Test plan

  • bash scripts/validate-skills.sh passes for all 13 skills

@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, 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

  • Provider-Agnostic Activation Contract: Introduced a new, neutral contract for skill activation, allowing runtimes to decide when to load skills without being tied to specific providers. This includes a new docs/activation-model.md and an example manifest docs/examples/activation-skills.yaml.
  • Extended Skill Frontmatter: The skill frontmatter schema (metadata-version: "2") was extended to include new, optional activation metadata fields such as capabilities, activation-intents, activation-events, activation-artifacts, and risk-level.
  • Updated Tooling and Documentation: Scaffolding (scripts/init-skill.sh) and validation tooling (scripts/validate-skills.sh) were updated to support the new activation metadata. Contributing guidelines, README, and review checklists were also updated to reflect these changes.
  • Activation Hints for Shipped Skills: All existing Chalk skills were updated to metadata-version: "2" and now include activation hints, providing a foundation for future routing in tools like Chalk Browser.
Changelog
  • CHANGELOG.md
    • Added an activation model specification document.
    • Added an example project activation manifest.
    • Extended the frontmatter contract with provider-agnostic activation metadata (metadata-version: "2").
    • Updated scaffolding and validation tooling for activation metadata.
Using Gemini Code Assist

The 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 /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

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 .gemini/ folder in the base of the repository. Detailed instructions can be found here.

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

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@breadoncee breadoncee self-assigned this Mar 16, 2026
@breadoncee breadoncee changed the title Add provider-agnostic Chalk activation contract feat(activation): add provider-agnostic Chalk activation contract Mar 16, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread scripts/init-skill.sh
Comment thread docs/activation-model.md
Comment thread scripts/validate-skills.sh
breadoncee added a commit that referenced this pull request Mar 16, 2026
… rules, refactor CSV validation

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
breadoncee added a commit that referenced this pull request Mar 16, 2026
@breadoncee
breadoncee force-pushed the feat/chalk-activation-contract branch from 0f9af56 to 930f5af Compare March 16, 2026 18:53
@breadoncee
breadoncee force-pushed the feat/chalk-activation-contract branch from 930f5af to 2a05559 Compare March 16, 2026 20:27
@breadoncee
breadoncee merged commit 2c29f59 into main Mar 16, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant