Repo reference audit

From clowlove/Hermes-House · View interactive version

Repo reference audit is an AI agent skill from the GitHub repository clowlove/Hermes-House. Audit and bulk-correct repository self-references across multi-file, multi-language codebases. Covers repo name typos, clone URLs, placeholder tokens, and cross-reference consistency after renames or refactors.

How to use this skill

Skill file

Repository Reference Audit

Systematically find and fix repository self-references that have drifted due to renames, copy-paste from upstream templates, or placeholder tokens left during setup.

When to Use

Audit Methodology

Phase 1: Discovery

Scan the entire repo for all external-looking URLs and repo-name patterns:

# Find all HTTP(S) URLs
find . -type f \( -name '*.md' -o -name '*.json' -o -name '*.py' -o -name '*.yml' -o -name '*.yaml' \) \
  -not -path './node_modules/*' -not -path './.git/*' \
  -exec grep -Hn 'https?://[^)>\s]+' {} +

# Find all owner/repo patterns (GitHub shorthand)
grep -rn 'github\.com/[A-Za-z0-9_-]\+/[A-Za-z0-9_.\-]\+' --include='*.md' --include='*.json' --include='*.py' --include='*.yml'

# Find common typos/variants of the repo name
grep -rn 'Harmes-House\|Hermes-House\|[REDACTED]' --include='*.md' --include='*.json' --include='*.py'

Also check:

Phase 2: Classification

Classify every hit into one of these buckets:

| Bucket | Action | Example |

|--------|--------|---------|

| Correct | No change | https://github.com/clowlove/Hermes-House |

| Typo in repo name | Fix spelling | Harmes-House → Hermes-House |

| Wrong upstream | Point to actual repo | nousresearch/hermes-agent → clowlove/Hermes-House |

| Placeholder token | Replace with real value | [REDACTED] → clowlove (or remove if sensitive) |

| External ref | Keep as-is | Third-party URLs, upstream docs, CDN badges |

| Generated/lock file | Skip unless intentional | package-lock.json resolved URLs, node_modules/ |

Phase 3: Targeted Fixes

Do NOT blindly sed the whole repo. Fix by bucket with explicit old_string → new_string pairs.

Pitfalls:

Phase 4: Verification

# Re-scan for remaining issues
grep -rn 'Harmes-House\|nousresearch/hermes-agent' --include='*.md' --include='*.json' --include='*.py' | grep -v 'badge\|Sponsor\|Support'

# Verify clone instructions work
grep -rn 'git clone' --include='*.md' | grep -v 'nousresearch/hermes-agent'

# Check placeholder tokens remain only where intended
grep -rn '\[REDACTED\]' --include='*.md' --include='*.json'

Common Patterns

Repo rename typo (a → e)

The most common pattern when a repo is named after a brand/person and gets misspelled in templates:

Clone URL drift

Forks often copy README clone instructions from upstream:

- git clone https://github.com/upstream-org/original-repo.git
+ git clone https://github.com/clowlove/Hermes-House.git
  cd Hermes-House

Placeholder tokens

[REDACTED], YOUR_USERNAME, owner/repo left in configs or docs:

Safety Constraints

  1. Never rewrite product structure — only touch docs, configs, metadata, and CSS/JS/meta for SEO/visual work.
  2. Never touch node_modules/, .git/, dist/, build/ — these are generated or immutable.
  3. Lock files (package-lock.json, yarn.lock) — only fix if the resolved URL is clearly wrong for this repo. Mirror URLs (Tencent, Aliyun, etc.) are intentional.
  4. Historical logs — dated entries in CHANGELOG.md, docs/memory-backup/, hermes-journal.md should be fixed for consistency unless they are verbatim historical records.
  5. Secrets — never expose PATs, tokens, API keys, or private emails during cleanup.

Output

After fixing, report:

Reference

For the full error taxonomy and real-world examples from the clowlove/Hermes-House audit, see references/repo-reference-audit-examples.md.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.