Skip to content

Add a security rule for creating agent skills #110

Open

Description

@thomas-bartlett

Summary

Add a model-agnostic CodeGuard rule for securely creating and modifying agent skills.

Skills can control tools, files, networks, credentials, and agent behavior, so they should be treated as security-sensitive artifacts.

Related discussion: #43

Proposed guidance

The rule should cover:

  • Using only necessary tools and permissions.
  • Making filesystem, network, shell, and credential access explicit.
  • Avoiding hidden instructions and unsafe commands.
  • Documenting the skill's purpose, inputs, outputs, and dependencies.
  • Reviewing skills before publishing or installing them.

Acceptance criteria

  • A new source rule is added.
  • Relevant examples are included.
  • Validation and existing tests pass.
  • Generated formats and documentation are updated as needed.

Activity

  1. moved this from Needs Triage to Needs Decision in Project CodeGuardon Aug 4, 2026
  2. AdvaitVarhade commented on Aug 4, 2026

    @AdvaitVarhade

    I would like to work on this. I can implement the new security rule in Python to analyze skill definitions for tool permissions, unsafe shell commands, and hidden instructions, along with complete test cases and documentation updates.

  3. moved this from Needs Decision to In Progress in Project CodeGuardon Aug 4, 2026
  4. moved this from In Progress to Needs Decision in Project CodeGuardon Aug 6, 2026
  5. thomas-bartlett commented on Aug 31, 2026

    @thomas-bartlett
    ContributorAuthor

    Thank you @AdvaitVarhade for the work on PR #112, and apologies for the delayed follow-up.

    Before moving forward, we would like to compare the proposal with existing CodeGuard guidance and current approaches to securing agent skills so we can identify the concrete gap and the right artifact. No action is needed while we complete that review.

    We appreciate the contribution and your patience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions