Skip to content

Conversation

@llaughlin
Copy link

@llaughlin llaughlin commented Oct 24, 2025

Enhanced the writing-skills documentation to emphasize critical verification of CLI command syntax against actual help output and clarify guidance for AI agents when documenting tool-based skills.

Motivation and Context

AI agents frequently make assumptions about CLI tool syntax without verification, leading to skills with incorrect command examples. This creates frustration when users follow documented commands that don't work. The writing-skills documentation needed stronger guidance on mandatory verification processes for any skill involving command-line tools or APIs.

This change addresses the pattern where skills document CLI syntax based on assumptions rather than verified help output, which undermines the reliability of the entire skills system.

How Has This Been Tested?

  • Reviewed existing skills in the repository for CLI documentation patterns
  • Verified that the new verification guidance addresses real failure modes in skill creation
  • Tested examples against actual CLI help output to ensure accuracy
  • Validated that the new sections integrate well with existing documentation structure

Breaking Changes

None. This is purely additive documentation that enhances existing guidelines without changing the fundamental skill creation process.

Types of changes

  • Documentation update
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist

  • I have read the MCP Documentation
  • My code follows the repository's style guidelines
  • New and existing tests pass locally
  • I have added appropriate error handling
  • I have added or updated documentation as needed

Additional context

Key Enhancements Made:

  1. Mandatory CLI Verification Section: Added comprehensive guidance requiring verification of all CLI syntax against actual --help output
  2. Common Failure Patterns: Documented typical mistakes and red flags when documenting CLI tools
  3. Verification Examples: Provided concrete before/after examples showing proper verification workflow
  4. Integration with Existing Checklist: Added CLI verification as a mandatory checklist item

Implementation Notes:

  • Maintains existing documentation structure while adding critical verification requirements
  • Uses consistent formatting with existing documentation patterns
  • Provides actionable guidance rather than abstract principles
  • Addresses real failure modes observed in skill creation process

The changes ensure that future skills involving CLI tools will have accurate, verified syntax, improving the overall reliability and user experience of the skills system.

Summary by CodeRabbit

  • Documentation
    • Added a mandatory CLI Tool Verification section with step-by-step checks (existence, subcommands, syntax testing, exact flag documentation, version context).
    • Updated guidance to require verifying CLI syntax against actual --help output before documenting usage.
    • Replaced unverified examples with verified GOOD/BETTER examples and explicit verification annotations.
    • Added a table of common CLI documentation failures, danger signals, and updated success criteria and GREEN-phase checklist.

…x against actual help output and clarify references for AI agents.
@coderabbitai
Copy link

coderabbitai bot commented Oct 24, 2025

Walkthrough

Added mandatory CLI tool verification guidance to the writing skills guide: procedures to confirm tool existence, enumerate subcommands, verify syntax against actual --help output, document exact flags and versions, plus common failures and danger signals. Integrates verification into workflow and GREEN checklist.

Changes

Cohort / File(s) Change Summary
CLI Verification Documentation
skills/writing-skills/SKILL.md
Added a "CLI Tool Verification (Critical)" section with step-by-step verification (existence, subcommands, syntax testing, exact-flag documentation, version context). Replaced/augmented examples to show verified vs unverified CLI usages, added a "Common CLI Documentation Failures" table, annotated code blocks with verification notes, inserted CRITICAL warnings in File Organization and Common Rationalizations, and added verification to the Skill Creation GREEN checklist and success criteria.

Sequence Diagram(s)

sequenceDiagram
    participant Author as Author
    participant Tool as CLI Tool
    participant Docs as SKILL.md
    rect rgb(230, 255, 230)
    Note right of Author: Verification workflow (new)
    end
    Author->>Tool: run `tool --help` / check version
    Tool-->>Author: help output, subcommands, flags, version
    Author->>Docs: update CLI docs with exact flags & verified syntax
    Docs-->>Author: annotated examples (GOOD/BETTER), CRITICAL notes, failure table
    alt mismatch or missing
        Author->>Tool: test subcommand syntax (runtime)
        Tool-->>Author: success / error (adjust docs)
    end
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 I sniff the help, I hop and peep,
I list the flags before they sleep.
Verified lines, no guessing games,
I stamp the docs with careful claims.
Hooray — the CLI garden’s neat! 🌱

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title "Enhance CLI skills documentation for syntax verification" is directly aligned with the primary change in this pull request. The changeset introduces comprehensive CLI verification requirements, including a mandatory verification section, documentation of failure patterns, and integration of syntax verification into the checklist workflow. The title accurately captures this main objective by emphasizing both the focus (CLI skills documentation) and the purpose (syntax verification), making it clear and specific enough for a teammate reviewing history to understand the core change without ambiguity or vagueness.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@llaughlin llaughlin marked this pull request as ready for review October 24, 2025 17:01
Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
skills/writing-skills/SKILL.md (1)

339-345: Minor style issue: Reduce repeated "probably" phrasing in the table.

The "Common CLI Documentation Failures" table repeats the word "probably" in two consecutive rows, which reduces stylistic variety and emphasis. Consider rewording one row to create clearer semantic distinction.

Current (lines 344–345):

  • Row 3: "Flag names, structure vary between tools | Verify every example"
  • Row 4: "Syntax is probably... | Probably wrong without verification | Test commands before documenting"

Suggested fix: Replace the second "Probably wrong" in Row 4 with a more direct statement like "Almost certainly wrong" or "Incorrect without verification."

  | "Basic commands are obvious" | Flag names, structure vary between tools | Verify every example |
- | "Syntax is probably..." | Probably wrong without verification | Test commands before documenting |
+ | "Syntax is probably..." | Almost certainly wrong without verification | Test commands before documenting |
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 19e2997 and b3c3a92.

📒 Files selected for processing (1)
  • skills/writing-skills/SKILL.md (7 hunks)
🧰 Additional context used
🪛 LanguageTool
skills/writing-skills/SKILL.md

[style] ~344-~344: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...ific help | | "Syntax is probably..." | Probably wrong without verification | Test comma...

(REP_PROBABLY)


[style] ~362-~362: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...is tool works like..." - "The syntax is probably..." - "Most CLI tools use..." - "It sho...

(REP_PROBABLY)

🔇 Additional comments (3)
skills/writing-skills/SKILL.md (3)

323-366: Comprehensive CLI verification section is well-structured and actionable.

The new "CLI Tool Verification (Critical)" section is effectively positioned and provides concrete, practical guidance. The five-step mandatory verification process is clear, the Common CLI Documentation Failures table concisely captures real pitfalls, and the verification examples with before/after patterns make the guidance immediately applicable. The red flags list helps writers self-detect when they're rationalizing, which aligns well with the document's theme of closing loopholes.


54-60: CLI verification requirements are consistently reinforced across the document.

Verification is mentioned in "When to Create a Skill" (as a negative requirement), embedded in the checklist as a required item, referenced in code examples, and given a dedicated critical section. This multi-point reinforcement ensures the guidance is hard to miss and addresses the PR's motivation effectively. Well done.

Also applies to: 638-638


202-211: Token efficiency examples effectively demonstrate verification workflow.

The progression from BAD (assumed) → GOOD (with --help reference) → BETTER (with verified example) is pedagogically sound and shows writers how to balance documentation brevity with the new verification requirement. This section integrates the new guidance without disrupting the existing CSO discussion.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
skills/writing-skills/SKILL.md (1)

349-366: Concrete examples and red flags work well; minor opportunity to vary phrasing for style.

The BAD→GOOD→BETTER progression (lines 349–358) clearly demonstrates the verification workflow. Red flags section effectively lists rationalization patterns to catch. Consider varying phrasing in lines 361–364 to reduce repetition:

- "I assume this tool works like..."
- "The syntax is probably..."
- "Most CLI tools use..."
- "It should be similar to..."
+ "I assume this tool works like..."
+ "Syntax is probably..."
+ "Most CLI tools must use..."
+ "It should be similar to..."

Minor style improvement; no functional impact.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b3c3a92 and 37313c8.

📒 Files selected for processing (1)
  • skills/writing-skills/SKILL.md (7 hunks)
🧰 Additional context used
🪛 LanguageTool
skills/writing-skills/SKILL.md

[style] ~362-~362: You have already used this phrasing in nearby sentences. Consider replacing it to add variety to your writing.
Context: ...is tool works like..." - "The syntax is probably..." - "Most CLI tools use..." - "It sho...

(REP_PROBABLY)

🔇 Additional comments (4)
skills/writing-skills/SKILL.md (4)

323-366: Well-structured mandatory CLI verification section with clear, actionable guidance.

The new "CLI Tool Verification (Critical)" section is appropriately comprehensive—verification process, common failures table, concrete examples, and red flags work together effectively. Callouts throughout the document (lines 73, 466) properly reinforce criticality. Integration into the checklist (line 638) ensures compliance on every skill.


202-211: Token-efficiency section now properly models verification workflow.

The updated examples (GOOD and BETTER) now emphasize --help verification and include verified-output annotations. Shift from "all flags in SKILL.md" to "reference --help for details" appropriately balances brevity with completeness.


54-60: Skill creation decision points now account for CLI verification requirements.

Additions to "When to Create a Skill" (lines 54, 60) and "Skill Types" (line 73) properly gatekeep skills that rely on unverified CLI syntax. Placing CRITICAL guidance early signals priority without burying it.

Also applies to: 73-73


638-638: Checklist integration appropriately positions CLI verification in GREEN phase.

Adding "Verify all CLI commands/syntax against actual --help output" as a discrete GREEN checklist item ensures verification happens before declaring the skill complete. Placement alongside other validation steps (code examples, agent compliance) maintains phase coherence.

@obra
Copy link
Owner

obra commented Oct 24, 2025

Hi,

Can you tell me a bit about what problem this is solving for you? The PR appears to have been written by an agent and doesn't talk about the real world problems you're fixing with it.

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.

2 participants