| name | titools-skill-auditor |
| description | Use when reference files for the doc-based skills in this repo need re-aligning with upstream Titanium SDK documentation โ after a `tidev/titanium-docs` release, when an audit reveals stale or training-data content, or before tagging a skills version. Covers `ti-api`, `ti-guides`, `ti-howtos`, `alloy-guides`, and `alloy-howtos`. Maintenance-only โ not intended for end-user Titanium projects. |
| metadata | {"internal":true} |
titools-skill-auditor
Maintenance-only skill for auditing and updating the doc-based skills in this repo against their upstream documentation source (tidev/titanium-docs).
For creating a new skill from scratch, use a generic skill-creator workflow instead.
Scope
This skill audits the five reference skills:
ti-api
ti-guides
ti-howtos
alloy-guides
alloy-howtos
It does not audit:
- Workflow skills like
ti-module-update (no single upstream doc tree to compare against)
- Skills outside the
skills/ folder
Setup
Audits compare reference files against a local clone of tidev/titanium-docs at .titanium-docs/ in the repo root. The folder is gitignored.
If .titanium-docs/ is missing, fetch it before auditing:
git clone --depth 1 https://github.com/tidev/titanium-docs.git .titanium-docs
To refresh before an audit:
cd .titanium-docs && git pull --ff-only && cd ..
Invocation
Parse $ARGUMENTS to determine which skill to audit:
| Input | Action |
|---|
<skill-name> | Audit the named skill against its mapped doc subtree |
| (empty) | Ask the user which skill to audit |
Valid skill names: ti-api, ti-guides, ti-howtos, alloy-guides, alloy-howtos.
Audit workflow
- Load quality-standards.md and source-map.md.
- Verify
.titanium-docs/ exists. If not, prompt the user with the clone command above.
- Execute Phases 0โ3 of audit-workflow.md (classify, analyze, identify gaps, report).
- Phase 4 is a hard STOP โ present the consolidated report and wait for explicit user approval.
- After approval, execute Phases 5โ6 (apply updates, verify).
Protected content โ NEVER delete during audits
Any section titled ## Community-Discovered Patterns (H2) in a skill's reference file contains verified real-world patterns that are intentionally not in the official docs. These sections fill gaps where official docs are silent or incomplete.
Rules during audits
- NEVER delete a Community-Discovered Patterns section, even when it lacks an official source.
- Verify every pattern against current docs โ if officially documented now, move the content to the main section and cite the source (don't leave duplicates). If SDK behavior changed, update the pattern. Outdated patterns are as harmful as hallucinated ones.
- Preserve patterns that remain uncovered by official docs.
- Add new patterns when verified gaps are found โ see
audit-workflow.md Phase 2 step 5 for how to classify unlabeled author content.
See references/quality-standards.md ยง "Protected sections" for the full rule set.
Skill structure convention
Every doc-based skill in this repo follows this layout:
skills/<skill-name>/
SKILL.md # Entry point (~200โ500 lines)
references/
TOPIC_ONE.md # Deep reference (~200โ800 lines each)
TOPIC_TWO.md
...
SKILL.md responsibilities
- Frontmatter โ
name, description ("Use whenโฆ", third person), total โค 1024 chars
- Quick reference โ Topic โ reference file mapping
- Summary content โ Enough context to answer simple questions without loading references
- When to load references โ Clear guidance on which reference to read for deeper topics
Reference file responsibilities
- Single topic focus โ One reference = one coherent topic
- Self-contained โ Readable without SKILL.md context
- Code examples โ ES6+ style, practical and copy-pasteable
- Cross-references โ Use relative markdown links to related references within the same skill
Reference file navigation
Loading order
quality-standards.md โ Internalize rules before evaluating content
source-map.md โ Find the official docs to compare against
audit-workflow.md โ Follow phases sequentially
Post-completion reminder
After completing an audit:
- Spot-check โ open 2โ3 updated references and verify content quality.
- Test invocation โ verify the updated skill loads correctly in Claude Code (or the agent of choice).
- Commit per skill โ one focused commit per audited skill, e.g.
audit(<skill>): align refs with titanium-docs <date or commit>.
- Mention in the PR description if changes are substantial, so reviewers see the diff context.