Skip to content

docs: comprehensive file-formats documentation with inline examples#1223

Closed
rudironsoni wants to merge 1 commit intodyoshikawa:mainfrom
rudironsoni:fix/comprehensive-file-formats-docs
Closed

docs: comprehensive file-formats documentation with inline examples#1223
rudironsoni wants to merge 1 commit intodyoshikawa:mainfrom
rudironsoni:fix/comprehensive-file-formats-docs

Conversation

@rudironsoni
Copy link
Copy Markdown
Contributor

@rudironsoni rudironsoni commented Feb 28, 2026

Summary

This PR adds comprehensive documentation for Rulesync file formats.

Changes

File Description
docs/reference/file-formats.md Main documentation covering all Rulesync configuration formats
skills/rulesync/file-formats.md Skill definition for file-formats documentation

Documentation Coverage

  • Complete reference for all Rulesync configuration file formats
  • Version-annotated inline examples for every supported format
  • Detailed field descriptions with types, defaults, and usage

Checklist

  • Documentation follows project formatting standards (oxfmt)
  • No generated files committed
  • No unrelated changes included
  • Single commit with clean history

@rudironsoni rudironsoni force-pushed the fix/comprehensive-file-formats-docs branch 3 times, most recently from 54bc39a to 25717a9 Compare February 28, 2026 16:26
@rudironsoni rudironsoni changed the title docs: add comprehensive file-formats documentation with version annotations docs: comprehensive file-formats documentation with inline examples Feb 28, 2026
@rudironsoni rudironsoni force-pushed the fix/comprehensive-file-formats-docs branch 5 times, most recently from 05853c2 to 4bce5ee Compare February 28, 2026 17:09
@dyoshikawa-claw
Copy link
Copy Markdown
Collaborator

/opencode review

@github-actions

This comment has been minimized.

Copilot AI review requested due to automatic review settings March 1, 2026 02:12
@rudironsoni rudironsoni force-pushed the fix/comprehensive-file-formats-docs branch from 96120c3 to 3b1dcdf Compare March 1, 2026 02:12
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR substantially expands the Rulesync “File Formats” documentation, adding detailed, version-annotated field references and comprehensive inline examples across all supported configuration formats.

Changes:

  • Expanded file-format docs with comprehensive YAML/JSON examples and per-field version notes.
  • Added hook event support tables/mappings and an expanded “Supported Tools” + version reference section.
  • Mirrored the same reference content into the Rulesync skill documentation.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 13 comments.

File Description
skills/rulesync/file-formats.md Mirrors the file-formats reference inside the Rulesync skill docs, including examples, hook docs, supported-tools table, and version history.
docs/reference/file-formats.md Adds the primary comprehensive file-formats reference under docs/reference with detailed examples, event mapping tables, supported tools, and version reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread skills/rulesync/file-formats.md
Comment thread skills/rulesync/file-formats.md Outdated
Comment thread skills/rulesync/file-formats.md Outdated
Comment thread docs/reference/file-formats.md Outdated
Comment thread docs/reference/file-formats.md Outdated
Comment on lines 187 to 193
```json
{
"version": 1,
"version": 1, // v2.0.0 - Number. Schema version number. Default: 1.
// - Defines the hooks schema version for parsing
// - Future versions may add new features or change structure
// Current value: 1
"hooks": {
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

This “Comprehensive Example” is fenced as json but contains // comments, which makes it invalid JSON and not directly copy/pasteable into .rulesync/hooks.json. Consider switching the fence to jsonc (and/or explicitly labeling it as “annotated”) and/or provide a separate valid JSON example without comments.

Copilot uses AI. Check for mistakes.
Comment thread docs/reference/file-formats.md Outdated
Comment on lines +972 to +975
### v7.10.1 (Current)

- Patch release with minor fixes
- Dependency updates
Copy link

Copilot AI Mar 1, 2026

Choose a reason for hiding this comment

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

This version list labels v7.10.1 as “Current”, but the repository’s package version is 7.10.0. Please either update this to reflect the current released version or clarify that v7.10.1 is unreleased/planned.

Suggested change
### v7.10.1 (Current)
- Patch release with minor fixes
- Dependency updates
### v7.10.1 (Planned)
- Planned patch release with minor fixes
- Planned dependency updates

Copilot uses AI. Check for mistakes.
Comment thread skills/rulesync/file-formats.md Outdated
Comment thread docs/reference/file-formats.md Outdated
Comment thread docs/reference/file-formats.md Outdated
Comment thread skills/rulesync/file-formats.md Outdated
@rudironsoni rudironsoni force-pushed the fix/comprehensive-file-formats-docs branch from 3b1dcdf to 5b59736 Compare March 1, 2026 02:24
@rudironsoni rudironsoni force-pushed the fix/comprehensive-file-formats-docs branch from 52a8481 to 7054d49 Compare March 1, 2026 02:44
@dyoshikawa-claw

This comment has been minimized.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 2, 2026

PR #1223 Review Results

Code Review Findings

Critical Issues:

  1. Invalid YAML Syntax in Examples - YAML frontmatter examples use invalid syntax where values appear on separate lines from keys (e.g., root: followed by newline and true). This creates invalid nested structures. All YAML examples need syntax correction throughout both documentation files.

  2. Significant Content Discrepancy Between Documentation Files - The two modified files have different change volumes (~160 line difference), suggesting they may not be synchronized. Since skills/ is distributed to users and docs/ is the main reference, consistency is critical.

Medium Issues:

  1. Version History Has Placeholder Content - Version history (v5.1.0 - v6.9.x) contains generic placeholder text ("Various bug fixes and improvements") that's not useful for users. Should provide actual release notes or link to CHANGELOG.md.

  2. Incomplete Feature Matrix - The "Complete Feature Matrix by Version" jumps from v5.0.0 to v7.6.0, skipping v6.x versions entirely, inconsistent with the Version Reference section.

  3. Inconsistent Event Mapping Tables - Event mapping tables show support indicators that don't match the actual mappings (e.g., OpenCode stopsession.idle but table shows different mapping).

  4. Missing Section Header - Version history section lacks proper header, appearing abruptly after "Conflicting Targets" section.

Minor Issues:

  1. cspell.json Addition - Adding "worktree" to cspell.json is tangentially related to documentation but affects spell-checking configuration.

  2. dryRun vs check Confusion - Both options appear to validate without writing but their distinction is unclear in documentation.

Positive Observations:

  1. Documentation Follows Standards - Documentation follows oxfmt formatting standards per PR description.

  2. Well-Structured Examples - New "Comprehensive Example" format with version-annotated inline comments is a significant improvement over previous minimal examples.

Security Review Findings

Overall Assessment: ✅ LOW RISK - No Critical Security Issues Found

Good Security Practices:

  1. Placeholder Credentials - Documentation uses appropriate placeholders ("Bearer token", "secret") for sensitive fields.

  2. Security Note for Trust Field - Includes appropriate security warning about trusting servers from verified sources.

  3. Localhost URLs - All URL examples use localhost, preventing accidental exposure to external services.

  4. Removed External Package Reference - Replaced reference to real external package (git+https://github.com/oraios/serena) with placeholder, reducing risk.

  5. No Path Traversal Patterns - File paths use safe relative references without ../ patterns.

  6. Proper Ignore File Guidance - Documentation correctly recommends ignoring sensitive files in .aiignore (.env, credentials/, *.key, etc.).

Minor Security Recommendations:

  1. Hook Command Security - Consider adding explicit warning about security implications of running arbitrary shell commands from hooks.

  2. External Sources Warning - Add guidance about verifying external skill sources before fetching.

  3. MCP Configuration Security - Consider adding general security section for MCP server configuration (command execution, environment variables, auto-approve settings).

  4. Environment Variable Injection - Document that environment variables should be validated if they come from untrusted sources.

  5. Auto-Approve Settings - Add warnings about security implications of alwaysAllow, kiroAutoApprove, and similar bypass features.

Verdict

Overall Assessment: Needs Revision

The PR significantly improves documentation coverage with well-structured examples. However, the critical YAML syntax issues (Finding #1) and content discrepancy between files (Finding #2) must be addressed before merging. From a security perspective, the PR is safe to merge with only minor recommendations for improvement.

github run

@cm-dyoshikawa
Copy link
Copy Markdown
Collaborator

@rudironsoni Thank you. However sorry, I'm going to reject this. If the documentation is too detailed, it will be difficult to maintain as updates are made. I think it would be better to keep the documentation simple and use something like a deepwiki that works with the source code to help people understand how to use it in detail.

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.

4 participants