スキル一覧に戻る
bitsoex

doc-sync

by bitsoex

Bitso Java API Wrapper

34🍴 30📅 2026年1月24日
GitHubで見るManusで実行

SKILL.md


name: doc-sync description: > Validates documentation is synchronized with code changes. Integrates with RFC-37 doclinter for structure validation and pre-push hooks to enforce documentation updates. Use after making significant code changes or when documentation gaps exist. compatibility: Works with any codebase; enhanced features with bitso-documentation-linter metadata: version: "1.0"

Doc Sync

This skill ensures documentation stays synchronized with code changes. It provides validation tools, pre-push checks, and integration with RFC-37 documentation standards.

When to use this skill

  • After making code changes that affect architecture or APIs
  • When documentation may be out of sync with code
  • During code review to verify documentation completeness
  • To check for broken links in documentation
  • When setting up documentation validation in a repository

Skill Contents

Sections

Available Resources

📚 references/ - Detailed documentation

🔧 scripts/ - Automation scripts


Quick Start

1. Check Documentation Status

# Via skills CLI
node .scripts/skills-cli.ts doc-sync validate

# Or directly
node -e "import('./.scripts/lib/skills/doc-sync.ts').then(m => m.validateDocs('.'))"

2. Pre-Push Hook Integration

Add documentation validation to your pre-push hook:

# In .git-hooks/pre-push or hooks-checks.js
# Checks if docs need updating when architecture files change

Documentation Validation Checks

CheckWhat It DoesSeverity
README presenceVerifies README.md existsError
Broken linksChecks internal markdown linksWarning
API docsLooks for generated API documentationInfo
FreshnessCompares doc timestamps to codeWarning
RFC-37 structureValidates docs/ folder structureError

Integration with RFC-37

For repositories following RFC-37 documentation standards:

# Install the linter
brew tap bitsoex/homebrew-bitso
brew install bitso-documentation-linter

# Run RFC-37 validation
doclinter --repo-path . --verbose

# Preview Confluence structure
doclinter tree --repo-path .

See the rfc-37-documentation skill for full RFC-37 compliance.

Pre-Push Documentation Check

The system can verify documentation is updated when significant files change:

Architecture Files That Trigger Doc Checks

const ARCHITECTURE_FILES = [
  'technology-hierarchy.json',
  'repo-overrides.json',
  'managed-paths.json',
  '.scripts/convert-rules.ts',
  '.scripts/targeting.ts',
  '.scripts/safe-sync.ts',
  '.scripts/ci-distribute.ts',
  '.github/workflows/ci.yaml'
];

Expected Documentation Updates

When architecture files change, update one of:

  • docs/ai-ide-management/concepts/architecture.md
  • docs/ai-ide-management/how-tos/targeting-and-inheritance.md
  • docs/ai-ide-management/overview.md
  • README.md

Skipping the Check

# For a single commit (when docs truly aren't needed)
AI_AGENTS_SKIP_DOCS_CHECK=1 git commit -m "chore: minor config tweak"

# Or document why in commit message
git commit -m "fix: typo in config

No docs update needed - cosmetic change only"

Available Functions

The doc-sync module exports these functions:

import {
  validateDocs,      // Run all documentation checks
  checkReadme,       // Verify README presence
  checkBrokenLinks,  // Find broken internal links
  checkApiDocs,      // Look for API documentation
  checkFreshness,    // Compare doc/code timestamps
  DOC_TOOLS          // Recommended tools by project type
} from './.scripts/lib/skills/doc-sync.ts';

Example Usage

import { validateDocs } from './.scripts/lib/skills/doc-sync.ts';

const result = await validateDocs('.', { quiet: false });

console.log('Passed:', result.passed);
console.log('Issues:', result.issues);
console.log('Warnings:', result.warnings);
console.log('Recommendations:', result.recommendations);

Documentation Tools by Project Type

ProjectToolsCommands
Java/GradleJavadoc, Checkstyle./gradlew javadoc
Node.jsTypeDoc, JSDoc, markdownlintnpx typedoc, npx markdownlint "**/*.md"
PythonSphinx, pydocstyle, MkDocssphinx-build, pydocstyle
Gogodoc, go docgo doc -all

Best Practices

1. Document As You Code

  • Update docs in the same PR as code changes
  • Use the pre-push hook to catch missing updates
  • Keep README.md as the single source of truth

2. Structure Documentation

Follow RFC-37 structure for consistency:

docs/
├── decisions/          # ADRs (Architecture Decision Records)
├── how-tos/           # Step-by-step guides
├── runbooks/          # Operational procedures
└── {service}/         # Service-specific docs
    ├── concepts/      # Architecture, design
    └── getting-started/

Use relative links between documentation files. For example, link from one reference file to another using relative paths like ./other-file.md or ../other-folder/file.md.

4. Keep Docs Fresh

  • Run freshness checks periodically
  • Update docs when APIs change
  • Review docs during code reviews

References

ReferenceDescription
references/java/javadoc-patterns.mdJava documentation patterns
references/typescript/jsdoc-patterns.mdTypeScript documentation patterns
references/python/docstring-patterns.mdPython documentation patterns
references/go/godoc-patterns.mdGo documentation patterns
SkillPurpose
rfc-37-documentationRFC-37 structure and Confluence mirroring
quality-gatewayQuality gate orchestration
git-hooksPre-commit/pre-push hook setup

Documentation in This Repository

For ai-code-instructions documentation, see docs/ai-ide-management/:

  • catalogues/ - Catalogues of rules, commands, MCP, skills
  • concepts/ - Architecture and design concepts
  • how-tos/ - Step-by-step guides
  • mcp/ - MCP configuration docs
  • overview.md - Main entry point

スコア

総合スコア

65/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

+10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

+5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です