Skip to content

feat(skills): Establish skill prompt size limits with validation #676

@rjmurillo-bot

Description

@rjmurillo-bot

Summary

Define maximum size limits for skill prompts and add automated validation.

Problem Statement

The pr-review skill prompt has grown to 500+ lines. Large prompts:

  • Consume more tokens per invocation
  • Are harder for agents to process
  • Become difficult to maintain
  • Increase likelihood of inconsistencies

Evidence: Session 109 export analysis (commit 9b693a5)

Requirements

Size Limits

  • Define maximum prompt size (proposed: 200 lines)
  • Define maximum config file size (proposed: 500 lines)
  • Document exceptions process for justified overages

Validation

  • Add lint check for skill prompt size
  • Add pre-commit hook to flag oversized prompts
  • Provide actionable guidance when limit exceeded

Acceptance Criteria

  1. Size limits documented in skill development guide
  2. Lint check validates prompt size
  3. At least 1 oversized skill refactored to meet limit
  4. Pre-commit provides actionable error message

Priority

P2 - Enhancement (prevents future bloat)

Metadata

Metadata

Assignees

Labels

area-infrastructureBuild, CI/CD, configurationarea-promptsAgent prompts and templatesarea-skillsSkills documentation and patternsdocumentationImprovements or additions to documentationenhancementNew feature or requestpriority:P2Normal: Standard enhancement or bug fix, moderate impacttechnical-debtCode or infrastructure that needs cleanup, refactoring, or optimization to reduce maintenance burden

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions