Loading...
Loading...
Create or update living documentation from git history (branch diff, current branch, PR, or last N commits) for microservices. Use when users ask to document a feature/funcionalidad, document current branch/branch actual, generate release notes/changelog, explain what changed, or update docs for react, integrator, magento, or all services. Produces docs in each repo's docs/ folder (components, changelogs, adrs, runbooks, guides, technical, bugs, plans, tasks) with traceability to commits/files and Obsidian-compatible frontmatter.
npx skill4agent add rcrespo-tripulse/tripulse-skills living-docsaliasesdocs/<repo-root>/
├── react/
│ └── docs/
│ ├── components/ # Component Docs
│ │ ├── react_comp_auth.md
│ │ └── react_comp_user_service.md
│ ├── changelogs/ # Changelogs and release notes
│ │ └── react_cl_2026-02-28.md
│ ├── adrs/ # Architecture Decision Records
│ │ └── react_adr_001_oauth.md
│ ├── runbooks/ # Runbooks and SOPs
│ │ └── react_rb_deploy.md
│ ├── guides/ # User Guides (NEW)
│ │ └── react_guide_oauth_setup.md
│ ├── technical/ # Technical Guides (NEW)
│ │ └── react_tech_state_mgmt.md
│ ├── bugs/ # Bug Reports (NEW)
│ │ └── react_bug_auth_timeout.md
│ ├── plans/ # Plans (NEW)
│ │ └── react_plan_q2_migration.md
│ ├── tasks/ # Task Docs (NEW)
│ │ └── react_task_deps_update.md
│ └── index.md # Auto-generated index linking all docs
├── integrator/
│ └── docs/
│ └── ...
└── ...docs-microservices/docs-microservices/
├── reference/ # Component Docs, Guides, Technical Docs (from components/, guides/, technical/)
│ ├── react/
│ ├── integrator/
│ └── ...
├── engineering/ # ADRs, Runbooks (from adrs/, runbooks/)
│ ├── adrs/
│ └── runbooks/
├── reports/ # Changelogs, Bug Reports (from changelogs/, bugs/)
│ └── changelogs/
└── strategy/ # Plans (from plans/)
└── ...${REPO}_${TYPE_CODE}_${SLUG}.md| Doc Type | Folder | Type Code | Filename Pattern | Example |
|---|---|---|---|---|
| Component Doc | | comp | | |
| Changelog | | cl | | |
| ADR | | adr | | |
| Runbook | | rb | | |
| Guide | | guide | | |
| Technical | | tech | | |
| Bug Report | | bug | | |
| Plan | | plan | | |
| Task Doc | | task | | |
docs/index.md# Documentation Index — react
> Last updated: 2026-02-28
## Component Docs
- [[react_comp_auth]] — Authentication service
## Changelogs
- [[react_cl_2026-02-28]] — Feature release
## Guides
- [[react_guide_oauth_setup]] — OAuth setup guide
## Technical
- [[react_tech_state_mgmt]] — State management deep-dive1. Gather context → Determine diff scope, identify repo
2. Extract diff data → Run extraction scripts
3. Classify changes → Identify what matters (see references/analysis-patterns.md)
4. Select templates → Pick doc types (see references/templates.md)
5. Generate docs → Write markdown with naming convention
6. Verify output → Cross-check generated docs against diff
7. Present summary → Show what was generated and why
8. Merge to central → After PR approval, merge to docs-microservicesfeature/XDevelopscripts/get-repo-name.sh${GIT_REPO_ROOT}/docs/${GIT_REPO_ROOT}/docs/git statusgit statusgit statusfatal: not a git repository (or any of the parent directories): .gitreactintegratormagentotodosallallREPO_PATH=<workspace-root>/<microservice># Get repository name (use this first!)
REPO_NAME=$(bash <skill-path>/scripts/get-repo-name.sh <repo-path>)
# Branch comparison with repo detection (recommended)
bash <skill-path>/scripts/extract-diff-repo.sh <repo-path> --branch <target>
# Last N commits
bash <skill-path>/scripts/extract-diff-repo.sh <repo-path> --commits 20
# Filtered by path (for monorepos)
bash <skill-path>/scripts/extract-diff-repo.sh <repo-path> --branch Develop --path services/auth/
# Large diffs: start with --stat only
bash <skill-path>/scripts/extract-diff-repo.sh <repo-path> --branch feature/X --statgit -C <repo-path> rev-parse --is-inside-work-tree<repo-path>/docs/<repo-path>/docs/index.mdCATEGORY=$(bash <skill-path>/scripts/get-doc-category.sh <change-type>)
# Options: reference, engineering, reports, strategy--statreferences/analysis-patterns.md| Change Type | Impact | Doc Types |
|---|---|---|
| New component / module | High | Component Doc (new) |
| Public API change | High | Component Doc + Changelog (Breaking if contract changed) |
| Business logic change | High | Component Doc + Changelog |
| Inter-component interface change | High | Component Doc + flag downstream consumers |
| Schema / data model change | High | ADR + Component Doc |
| Major dependency added | Medium-High | ADR + Component Doc |
| Infrastructure / deployment change | Medium | Runbook |
| Internal refactor (same behavior) | Low | Changelog (Internal) or skip |
| Release milestone | — | Changelog |
references/templates.mdaliasestypelayerstatusownertech_stacklast_updatedsource_branchcommit_range[[wiki-links]]last_updatedsource_branchcommit_rangestatusactivedebtzombiegapaliasesownertech_stacklast_updatedcommit_range| Section | Strategy |
|---|---|
| Frontmatter | Merge: Update |
| What It Does | Replace only if the component's purpose fundamentally changed |
| API Surface / Exported API | Merge: Add new entries, update changed entries, mark removed entries as deprecated |
| Dependencies | Replace with current state |
| Configuration | Merge: Add new env vars, update changed ones |
| Key Files | Replace with current state |
| Recent Changes | Append new changes at the top, keep last 5-10 entries |
owner: "[[TBD]]"## Documentation Generated
| File | Type | Reason |
|------|------|--------|
| docs/components/react_comp_auth.md | Component Doc | New endpoints in routes/users.ts |
| docs/changelogs/react_cl_2026-02-28.md | Changelog | 12 commits with 3 features, 2 fixes |
| docs/guides/react_guide_oauth_setup.md | Guide | OAuth integration guide |
### Key Changes Documented
- [bullets]
### Skipped (Low Impact)
- [what and why]${GIT_REPO_ROOT}/docs/index.mddocs-microservices/docs/docs-microservices/docs/components/docs-microservices/reference/{repo}/docs/changelogs/docs-microservices/reports/changelogs/docs/adrs/docs-microservices/engineering/adrs/docs/runbooks/docs-microservices/engineering/runbooks/docs/guides/docs-microservices/reference/{repo}/docs/technical/docs-microservices/reference/{repo}/docs/bugs/docs-microservices/reports/bugs/docs/plans/docs-microservices/strategy/plans/docs-microservices/index.md# Example workflow after PR approval
# Copy all docs from react to docs-microservices
cp -r react/docs/components/* docs-microservices/reference/react/
cp -r react/docs/changelogs/* docs-microservices/reports/changelogs/
cp -r react/docs/adrs/* docs-microservices/engineering/adrs/
cp -r react/docs/runbooks/* docs-microservices/engineering/runbooks/
cp -r react/docs/guides/* docs-microservices/reference/react/
cp -r react/docs/technical/* docs-microservices/reference/react/
cp -r react/docs/bugs/* docs-microservices/reports/bugs/
cp -r react/docs/plans/* docs-microservices/strategy/plans/status: debt=== REPO: react ===
=== BRANCH: feature/oauth vs Develop ===
=== COMMIT RANGE: a1b2c3d..d4e5f6g ===
=== FILE STATS ===
src/routes/auth.ts | 45 +++++++++--
src/services/oauth.ts | 120 ++++++++++++++++++++++++++++
src/types/auth.dto.ts | 15 ++++
package.json | 2 + (added passport-google-oauth20)
tests/oauth.test.ts | 85 ++++++++++++++++++++
=== COMMIT LOG ===
a1b2c3d feat: add Google OAuth2 login flow
d4e5f6g feat: add OAuth callback handler
h7i8j9k fix: handle missing email in OAuth profile
l0m1n2o chore: add passport-google-oauth20 dependency${REPO}_${TYPE}_${SLUG}.mddocs/components/react_comp_auth.mddocs/changelogs/react_cl_2026-02-28.mddocs/guides/react_guide_oauth_google.mddocs/technical/react_tech_oauth_architecture.mdscripts/extract-diff.shscripts/extract-diff-repo.shscripts/get-repo-name.shscripts/get-doc-category.shreferences/templates.mdreferences/analysis-patterns.md