Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

sync-docs-analysis

verified

Use when analyzing doc issues after code changes. Check for outdated references, stale examples, and missing updates.

View on GitHub

Marketplace

awesome-slash

avifenesh/awesome-slash

Plugin

sync-docs

development

Repository

avifenesh/awesome-slash
322stars

plugins/sync-docs/skills/sync-docs-analysis/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/avifenesh/awesome-slash/blob/main/plugins/sync-docs/skills/sync-docs-analysis/SKILL.md -a claude-code --skill sync-docs-analysis

Installation paths:

Claude
.claude/skills/sync-docs-analysis/
Powered by add-skill CLI

Instructions

# sync-docs-analysis

Analyze documentation for issues related to code changes.

## Input

Arguments: `<doc-path> <changed-file> [--deep]`

- **doc-path**: Path to the documentation file to analyze
- **changed-file**: The source file that changed
- **--deep**: Enable deep analysis (check code examples, verify imports)

## Analysis Types

### 1. Version References

Check if documentation references outdated versions.

```javascript
const { collectors } = require('@awesome-slash/lib');

const issues = collectors.docsPatterns.analyzeDocIssues(docPath, changedFile, {
  checkVersions: true
});
```

Detects:
- Package version mismatches
- API version references
- Changelog version mentions

### 2. Import/Export References

Check if documentation references removed or renamed exports.

```javascript
const exports = collectors.docsPatterns.getExportsFromGit(changedFile);
// Compare with doc content
```

Detects:
- References to removed functions
- Outdated import statements
- Renamed symbols

### 3. Code Examples

Check if code examples still work with current implementation.

```javascript
// Deep mode only
const examples = extractCodeBlocks(docContent);
for (const example of examples) {
  const imports = parseImports(example);
  const valid = validateImports(imports, currentExports);
}
```

Detects:
- Examples using removed APIs
- Examples with wrong import paths
- Examples with outdated patterns

### 4. File Path References

Check if file paths mentioned in docs still exist.

```javascript
const pathRefs = extractFilePaths(docContent);
for (const ref of pathRefs) {
  if (!fs.existsSync(ref)) {
    issues.push({ type: 'missing-file', path: ref });
  }
}
```

## Output Format

```json
{
  "doc": "README.md",
  "referencedFile": "src/utils.js",
  "issues": [
    {
      "type": "outdated-version",
      "line": 15,
      "current": "1.0.0",
      "expected": "1.1.0",
      "certainty": "HIGH",
      "autoFix": true,
      "suggestion": "Update version from 1.0.0 to 1.1.0"
 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
3855 chars