بنقرة واحدة
ultracode-autodoc
Working with .autodoc/ directory, automatic documentation generation, semantic doc search
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Working with .autodoc/ directory, automatic documentation generation, semantic doc search
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
Code analysis for TS/JS/Python/C#/Go/Rust/Java/C++/Swift/Kotlin/Zig/Bash — search, impact, refactoring, security, diagnostics
Code tracing, debugging, stacktrace analysis, "why not called", flow analysis, state dependencies
استنادا إلى تصنيف SOC المهني
| name | UltraCode AutoDoc |
| version | 1.0.0 |
| description | Working with .autodoc/ directory, automatic documentation generation, semantic doc search |
| triggers | ["autodoc","documentation",".autodoc","doc generation"] |
Auto-activated for: Working with .autodoc/ directory, documentation generation
AutoDoc — automatic code documentation system with semantic search.
All code references in AutoDoc are automatically kept up-to-date. When code moves or changes, line number references are updated automatically — they're always accurate.
AutoDoc describes the meaning of your application — processes, scenarios, business logic. Search finds relevant code even when there are no keywords or comments in the code itself. The documentation links directly to code sections.
AUTODOC.md files in module folders are auto-generated from code structureautodoc_search searches code AND documentation simultaneously. Results are enriched with context from both sources — find code by business meaning, not just keywords.
AutoDoc ≠ code comments
| Comments | AutoDoc |
|---|---|
| HOW code works | WHY, WHO uses, WHICH scenarios |
| Local context | Business context + architecture |
| For developer in IDE | For AI + system understanding |
| Keywords required to find | Find by meaning, no keywords needed |
.autodoc/
├── ARCHITECTURE.md # System components (create manually)
├── FLOW.md # Business scenarios (create manually)
├── PROCESSES.md # Technical processes (create manually)
├── DEPENDENCIES.md # Packages, APIs, microservices (create manually)
├── DEPLOYMENT.md # Build, CI/CD, ENV (create manually)
├── GLOSSARY.md # Terms (create manually)
│
└── src/ # Mirrors code structure
├── _index.md # Directory overview
├── module/
│ ├── AUTODOC.md # Auto-generated, enrichable
│ └── ...
└── ...
Note: Top-level documents (
ARCHITECTURE.md,FLOW.md, etc.) should be created manually. Module-levelAUTODOC.mdfiles are auto-generated but can be enriched. All code references are auto-updated.
.autodoc/ALWAYS use AutoDoc for understanding the project:
autodoc_search — instant semantic search across code + docs.autodoc/ files — business context that helps find code by meaning| File | Read when... |
|---|---|
ARCHITECTURE.md | Need to understand project structure |
FLOW.md | Need to understand business scenarios |
PROCESSES.md | Need to understand technical processes |
DEPENDENCIES.md | Need to understand external dependencies |
DEPLOYMENT.md | Need to understand build, CI/CD |
src/**/AUTODOC.md | Need to understand specific module |
.autodoc/Suggest to user: "Would you like to enable AutoDoc for this project?"
→ autodoc_init({ language: 'ru' }) or 'en'
Then:
AUTODOC.md files: autodoc_generate preview=falseARCHITECTURE.md, FLOW.md, etc.autodoc_initInitialize AutoDoc. Sets documentation language.
| Param | Type | Default | Description |
|---|---|---|---|
enabled | boolean | true | Enable AutoDoc |
language | enum | "en" | en / ru / zh |
docsDir | string | ".autodoc" | Documentation directory |
autodoc_statusStatus: enabled/disabled, statistics (docs, sections, refs).
autodoc_detect_languageAuto-detect language from code comments and existing docs.
| Param | Type | Default | Description |
|---|---|---|---|
scope | enum | "all" | comments / docs / all |
sampleSize | number | 20 | Files to sample |
autodoc_searchSemantic search across code + documentation. Use instead of regular search — provides context!
| Param | Type | Default | Description |
|---|---|---|---|
query | string | required | Search query |
mode | enum | "hybrid" | text / semantic / hybrid |
limit | number | 10 | Max results |
autodoc_getGet documentation by path. If section specified — only that section.
| Param | Type | Default | Description |
|---|---|---|---|
filePath | string | - | File path |
docId | string | - | Document ID |
autodoc_saveSave document. Automatically:
| Param | Type | Default | Description |
|---|---|---|---|
filePath | string | required | File path |
content | string | required | Markdown content |
type | enum | - | Document type |
autodoc_validateCheck all references, optionally fix broken ones.
| Param | Type | Default | Description |
|---|---|---|---|
fixBroken | boolean | false | Fix broken refs |
autodoc_syncSync documentation with code changes.
| Param | Type | Default | Description |
|---|---|---|---|
scope | enum | "outdated" | all / outdated / file |
direction | enum | "both" | both / disk-to-db / db-to-disk |
autodoc_generateAuto-generate documentation for the codebase.
| Param | Type | Default | Description |
|---|---|---|---|
preview | boolean | true | Preview without writing |
useLlm | boolean | false | Use LLM for descriptions |
incremental | boolean | true | Only update changed |
language | enum | "auto" | auto / en / ru / zh |
module | string | - | Generate for single module |
autodoc_changelogView documentation change history.
| Param | Type | Default | Description |
|---|---|---|---|
limit | number | 20 | Max entries |
since | timestamp | - | Filter since |
User: "Document this project"
1. autodoc_detect_language({ scope: 'comments' })
→ Detect language from comments
2. autodoc_init({ enabled: true, language: 'ru' })
→ Initialize AutoDoc
3. autodoc_status()
→ Show current state
4. Create .autodoc/ with documentation
autodoc_save({ filePath: 'ARCHITECTURE.md', content: '...' })
User: "How does authentication work?"
1. autodoc_search({ query: "authentication auth", mode: 'semantic' })
→ Finds documentation + code
2. autodoc_get({ filePath: 'FLOW.md', section: 'registration' })
→ Business scenario
3. autodoc_get({ filePath: 'PROCESSES.md', section: 'auth-flow' })
→ Technical implementation
User: "Added rate limiting to AuthService"
1. autodoc_sync({ scope: 'outdated' })
→ Find outdated documents
2. autodoc_validate()
→ Check references
3. autodoc_save({
filePath: 'src/services/auth/auth.service.md',
content: '...'
})
4. autodoc_changelog({ limit: 5 })
→ Show recent changes
AutoDoc Watcher works automatically when enabled:
# ultracode.yaml
mcp:
autodoc:
watcherEnabled: true
debounceMs: 45000 # base delay
On .ts/.js file changes:
DON'T duplicate comments! Write about:
# AuthService
[→ auth.service.ts:15-120](auth.service.ts#L15-L120)
## Role in System
**Why needed**: Single point for authentication management...
## Who Uses
| Consumer | How |
|----------|-----|
| [→ API Gateway](../../gateway/README.md) | Token validation |
## Participation in Processes
- [→ FLOW.md#registration](../../FLOW.md#registration)
- [→ PROCESSES.md#auth-flow](../../PROCESSES.md#auth-flow)
## Business Invariants
- One active token per user
- Rate limiting: 5 attempts/min
[→ file.ts:25-50](file.ts#L25-L50) # To code lines
[→ ModuleName](./_index.md) # To documentation
[→ FLOW.md#scenario](../../FLOW.md#scenario) # To section
In code comments:
/**
* @see docs://.autodoc/PROCESSES.md#auth-flow
* @flow user-registration, api-auth
*/
ultracode — Code analysis, semantic search, refactoring, code modificationultracode-trace — Debugging, flow analysis, "why not called"