Add --relaxed CLI option to ease description-length and frontmatter-key checks when packing skills #171
Labels
No labels
auto/blocked-by-deps
auto/ci-timeout
auto/claimed-implementer
auto/claimed-merge
auto/claimed-reviewer
auto/driver-down
auto/invariant-violation
auto/last-attempt-tier-0
auto/last-attempt-tier-1
auto/last-attempt-tier-2
auto/last-attempt-tier-min
Automation Tracking
auto/needs-conflict-resolution
auto/needs-implementer
auto/postmortem
auto/ready-to-merge
auto/restart-throttled
auto/revert
auto/sentinel
auto/stale-inactivity
auto/unstable
Blocked
Bounty
$100
Bounty
$1000
Bounty
$10000
Bounty
$20
Bounty
$2000
Bounty
$250
Bounty
$50
Bounty
$500
Bounty
$5000
Bounty
$750
MoSCoW
Could have
MoSCoW
Must have
MoSCoW
Should have
Needs Feedback
Points
1
Points
13
Points
2
Points
21
Points
3
Points
34
Points
5
Points
55
Points
8
Points
88
Priority
Backlog
Priority
CI Blocker
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Signed-off: Owner
Signed-off: Scrum Master
Signed-off: Tech Lead
Spike
State
Completed
State
Duplicate
State
In Progress
State
In Review
State
Paused
State
Unverified
State
Verified
State
Wont Do
Type
Automation
Type
Bug
Type
Discussion
Type
Documentation
Type
Epic
Type
Feature
Type
Legendary
Type
Refactor
Type
Support
Type
Task
Type
Testing
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
Depends on
#160 Epic: Agent Skills — Full Resource Support and Safe Execution
cleveragents/cleveractors-core
#177 feat(skills): add --relaxed flag to ease skill packaging checks
cleveragents/cleveractors-core
Reference
cleveragents/cleveractors-core#171
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Metadata
feat(skills): add --relaxed flag to ease skill packaging checksfeature/m1-skill-packer-relaxed-modeBackground and context
ADR-2034 D-3/D-6 define the
SkillDirectoryPacker/pack_skill_directorypacking rules (#165) and their CLI front end
utils/pack_skill.py. Packingvalidates the assembled mapping through
SkillValidator, which enforces a1024-character maximum on
description(_MAX_DESCRIPTION_LENGTHincleveractors.agents.skill_schema), andSkillDirectoryPacker._schema_fieldsrejects any
SKILL.mdfrontmatter key outside the fixed_ALLOWED_FRONTMATTER_FIELDSset incleveractors.agents.skill_packer.Both checks are correct defaults for publishable packages, but they block
authors during iteration: a draft skill with a longer description, or one
still carrying an extra client-specific frontmatter key before it is moved
under
metadata, cannot be packed at all today, even just to inspect theresulting mapping or Package ID locally.
Current behavior
python utils/pack_skill.py <dir>fails with aSkillPackingError/ValidationErrorwhendescriptionexceeds 1024 characters.python utils/pack_skill.py <dir>fails with aSkillPackingErrorwhenSKILL.mdfrontmatter contains any key outside the allowed set.Expected behavior
--relaxedflag toutils/pack_skill.py(argparse,store_true,default off).
--relaxedis given, and only then:descriptionis not enforced.SKILL.mdfrontmatter keys are tolerated instead ofraising
SkillPackingError; they are passed through rather thandropped silently.
--relaxed: the minimum 1 characterlength on
description, the reserved-field check (skill,instructions,resources), name pattern/length,compatibilitylength,allowed-tools/allowed_toolsconflict detection,safe_modetypechecking, resource path validation, and the directory-name-matches-skill-
name check all remain exactly as strict as today.
--relaxed, CLI behavior is byte-for-byte unchanged from today.Acceptance criteria
python utils/pack_skill.py <dir>(no flag) with a >1024-characterdescriptionstill fails exactly as today.python utils/pack_skill.py <dir> --relaxedwith a >1024-characterdescriptionsucceeds and packs the mapping.python utils/pack_skill.py <dir>(no flag) with an unsupportedfrontmatter key still fails exactly as today.
python utils/pack_skill.py <dir> --relaxedwith an unsupportedfrontmatter key succeeds and the key is present in the packed mapping.
--relaxedwith adescriptionshorter than 1 character still fails.--relaxedwith a reserved field (skill,instructions, orresources)declared in frontmatter still fails.
--relaxedhas no effect on any other validation rule (name, resourcepaths,
safe_modetype,compatibilitylength,allowed-toolsconflict).--relaxedcombined with--checkand with--outputboth work exactlylike today, modulo the two relaxed checks.
frontmatter key, and confirmation that every other rejection still fires
under
--relaxed.nox -s coverage_report.Supporting information
cleveractors.agents.skill_packer.SkillDirectoryPacker,cleveractors.agents.skill_schema.SkillValidator,utils/pack_skill.pypack_skill_directoryimplementation), parent Epic #160Subtasks
--relaxedargument toutils/pack_skill.pySkillDirectoryPacker.packtoSkillDirectoryPacker._schema_fields, tolerating unknown frontmatterkeys only when set
SkillValidator.validate, skipping thedescriptionmaximum-length check only when setdocs/guides/skill-packages.mdCLI section with--relaxedfrontmatter key, unaffected checks still enforced under
--relaxednox -s coverage_reportnox(all default sessions), fix any errorsDefinition of Done
This issue is complete when:
Metadata exactly.
master, reviewed, and merged.