ci: NO-JIRA add doc cleanup tools, sync enforcer, and edit tracker hooks#1125
Open
belumontoya wants to merge 2 commits intostagingfrom
Open
ci: NO-JIRA add doc cleanup tools, sync enforcer, and edit tracker hooks#1125belumontoya wants to merge 2 commits intostagingfrom
belumontoya wants to merge 2 commits intostagingfrom
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fb8b532e9a
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "codex (@codex) review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "codex (@codex) address that feedback".
Contributor
Author
|
Ignacio Ropolo (@iropolo) here is the doc tools automation 😉 |
…, fix stash+push detection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠️ Type Of Change
📖 Jira Ticket
N/A
📖 Description
Adds documentation cleanup and sync tooling for the Dialtone monorepo — a CI workflow, two Claude Code hooks, two commands, one agent, and one skill.
CI Workflow:
cleanup-plan-docs.yml— auto-deletesPLAN-*.mdanddocs/plans/after a PR merges to stagingHooks:
post-tool-use-tracker.sh(PostToolUse) — silently logs every file edit to.claude/tsc-cache/<session>/, tracks affected packages and their NX build/test commandspre-push-pr-guard.sh(PreToolUse on Bash) — fires ongit pushorgh pr create, reads the edit log, maps source packages todialtone-docscontent files, runs the doc-sync-enforcer automatically if docs are missing, suggests/doc-janitoron PR creationSkills/Agents/Commands:
doc-sync-enforcerskill +/doc-sync-enforcercommand — reads source code changes, maps them topackages/dialtone-docs/src/content/files, updates the docs to reflect what changeddoc-janitoragent +/doc-janitorcommand — sweeps stale artifacts (session files, backups, done plans) before mergingOther:
.gitignore— added work artifact patterns (PLAN-*.md,SESSION_*.md,*.backup, etc.) and.claude/tsc-cache/settings.json— wired both hooks, addedSkill(doc-sync-enforcer)andSkill(doc-janitor)to permissions allow listpr-fill.md— added step to suggest/doc-janitorduring PR creation💡 Context
Dialtone is getting a new
dialtone-docspackage (PR #1051) with AI-discoverable documentation. This tooling ensures those docs stay in sync with source code changes automatically — the hooks detect gaps and the enforcer fixes them before code is pushed.📝 Checklist
🔮 Next Steps