This skill provides guidance for maintaining documentation consistency with implementation in the vscode-sidebar-terminal project...
This skill ensures project documentation accurately reflects the current implementation.
After code changes, determine which documentation needs updates:
| Change Type | Documents to Update |
|---|---|
| New feature | README.md, CHANGELOG.md |
| Bug fix | CHANGELOG.md |
| Config change | README.md (Configuration), CHANGELOG.md |
| Shortcut change | README.md (Keyboard Shortcuts), CHANGELOG.md |
| Architecture change | CLAUDE.md, possibly domain CLAUDE.md files |
| WebView change | src/webview/CLAUDE.md, CLAUDE.md |
| Test pattern change | src/test/CLAUDE.md |
CHANGELOG.md - Always update first
[Unreleased] sectionREADME.md - If user-visible changes
CLAUDE.md - If development process affected
Domain-specific docs - If specialized area changed
Run verification checks from references/verification-checklist.md:
# Version check
node -p "require('./package.json').version"
# Commands check
node -p "require('./package.json').contributes.commands.map(c => c.command).join('\n')"
# Config check
node -p "Object.keys(require('./package.json').contributes.configuration.properties).join('\n')"
Before each release, verify:
node -e "
const pkg = require('./package.json');
const fs = require('fs');
const readme = fs.readFileSync('README.md', 'utf8');
pkg.contributes.commands.forEach(cmd => {
const shortName = cmd.command.replace('secondaryTerminal.', '');
if (!readme.includes(shortName)) {
console.log('Undocumented:', cmd.command);
}
});
"
node -e "
const pkg = require('./package.json');
const fs = require('fs');
const readme = fs.readFileSync('README.md', 'utf8');
Object.keys(pkg.contributes.configuration.properties).forEach(key => {
if (!readme.includes(key)) {
console.log('Undocumented config:', key);
}
});
"
VERSION=$(node -p "require('./package.json').version")
grep -q "## \[$VERSION\]" CHANGELOG.md && echo "Version documented" || echo "Version missing in CHANGELOG"
# Product Name
[Badges]
**Description**
[Hero Image]
## Quick Start
## Key Features
## Keyboard Shortcuts
## Command Palette
## Configuration
## Architecture
## Performance
## Troubleshooting
## Development
## Known Limitations
## Privacy
## Contributing
## Links
## License
## [X.Y.Z] - YYYY-MM-DD
### Added
- **Feature Name**: Description (#issue-number)
### Fixed
- **Bug Name**: Fix description (#issue-number)
- Technical detail if helpful
### Changed
- **Component Name**: What changed
## Development Flow
## Essential Development Commands
## Architecture Overview
## Development Guidelines
## Known Issues & Workarounds
## Performance Optimization
## Testing Strategy
## Emergency Response
For detailed information, read the following reference files:
| Reference | Use When |
|---|---|
references/documentation-structure.md |
Understanding project documentation layout |
references/verification-checklist.md |
Running consistency checks |
references/writing-guidelines.md |
Writing or improving documentation |
Solution:
Solution:
Solution:
Solution: