Skip to content

ProposeSkillsProposal

Base classes

Name Children Inherits
dict
builtins
dict() -> new empty dictionary

⋔ Inheritance diagram

graph TD
  1657988531["input_types.ProposeSkillsProposal"]
  2645524081["builtins.dict"]
  2751680898["builtins.object"]
  2645524081 --> 1657988531
  2751680898 --> 2645524081

🛈 DocStrings

Bases: TypedDict

proposal entry of ProposeSkills.

Source code in src/clawd_code_sdk/models/input_types.py
@_extra_allow
class ProposeSkillsProposal(TypedDict):
    """``proposal`` entry of ProposeSkills."""

    name: str
    """kebab-case skill slug; must not contain "claude" or "anthropic"; at most 64 characters for a
    new skill
    """
    kind: Literal["new", "improvement"]
    target: NotRequired[str]
    """Name of the existing skill to update. Required when kind is 'improvement'; omit for 'new'."""
    description: str
    """One short sentence saying when to use this skill: aim for under 200 characters, never more
    than 1024, and no angle brackets.

    Shown on the review card and saved as the skill's description, which is what decides when the
    skill is used. For an improvement, reuse the existing skill's description unless the change
    alters when the skill applies.
    """
    evidence: NotRequired[list[str]]
    """memory file paths where this procedure was observed"""
    edits: NotRequired[list[ProposeSkillsProposalEdit | list[ProposeSkillsProposalEdit]]]
    """For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in
    order.

    They apply to that file as it is now, not to an earlier proposal of yours. The card shows the
    whole updated file. The name and description come from the fields above, not from the
    frontmatter. @minItems 1 @maxItems 100
    """
    skillMd: NotRequired[str]
    """For a new skill or a full rewrite.

    The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the
    user saves, the body below the frontmatter becomes the skill's entire instructions and the name
    and description come from the fields above; other frontmatter keys are not kept. For an
    improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current
    SKILL.md first and include everything worth keeping, not only the changes.
    """

description instance-attribute

description: str

One short sentence saying when to use this skill: aim for under 200 characters, never more than 1024, and no angle brackets.

Shown on the review card and saved as the skill's description, which is what decides when the skill is used. For an improvement, reuse the existing skill's description unless the change alters when the skill applies.

edits instance-attribute

edits: NotRequired[list[ProposeSkillsProposalEdit | list[ProposeSkillsProposalEdit]]]

For an improvement, in place of skillMd: your changes to the skill's SKILL.md, applied in order.

They apply to that file as it is now, not to an earlier proposal of yours. The card shows the whole updated file. The name and description come from the fields above, not from the frontmatter. @minItems 1 @maxItems 100

evidence instance-attribute

evidence: NotRequired[list[str]]

memory file paths where this procedure was observed

name instance-attribute

name: str

kebab-case skill slug; must not contain "claude" or "anthropic"; at most 64 characters for a new skill

skillMd instance-attribute

skillMd: NotRequired[str]

For a new skill or a full rewrite.

The complete SKILL.md exactly as it should be saved: frontmatter plus the full body. When the user saves, the body below the frontmatter becomes the skill's entire instructions and the name and description come from the fields above; other frontmatter keys are not kept. For an improvement this replaces the existing skill's SKILL.md entirely, so read that skill's current SKILL.md first and include everything worth keeping, not only the changes.

target instance-attribute

target: NotRequired[str]

Name of the existing skill to update. Required when kind is 'improvement'; omit for 'new'.

:fa-brands-github: Show source on GitHub