Repository navigation
Add agent harness: AGENTS.md, review skill, site check CI - #5
Conversation
- AGENTS.md (+ CLAUDE.md importing it): layout, local preview, rules (never touch CNAME, case-sensitive paths, alt text, image size). - scripts/check_site.py: stdlib-only check for missing local files, dangling #anchors, img without alt, broken CSS url(), malformed CNAME. - .github/workflows/ci.yml runs it on PRs and pushes to master. - .github/skills/code-review/SKILL.md: review guide built from this repo's own fix history. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WZKhoAfa499EJsRM8WjrJq
|
Note Currently processing new changes in this PR. This may take a few minutes, please wait... ⚙️ Run configuration
📒 Files selected for processing (6)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
The checker has unresolved CNAME and path-validation issues.
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Adds agent guidance, a static-site checker, CI validation, and repository-specific review instructions.
Changes:
- Added
AGENTS.mdandCLAUDE.md. - Added link, asset, anchor, CSS, and CNAME validation.
- Added GitHub Actions CI.
- Added a code-review skill guide.
| File | Description |
|---|---|
scripts/check_site.py |
Static-site validation logic |
CLAUDE.md |
References AGENTS.md |
AGENTS.md |
Agent workflow and repository rules |
.github/workflows/ci.yml |
Runs site validation |
.github/skills/code-review/SKILL.md |
Repository-specific review guidance |
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
os.path.exists ignores case on default macOS volumes, so a wrong-case asset path passed locally and 404'd on GitHub Pages. Compare each path component against the real directory entries instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WZKhoAfa499EJsRM8WjrJq
Co-authored-by: Copilot Autofix powered by AI <[email protected]>
|
To fix it, Separately, the error text "Restore it from origin/master" is misleading now, because master holds the two-line file. It can be reworded in the same commit as the Generated by Claude Code |
GitHub Pages uses one custom domain per site; www.leekahhow.com redirects to it automatically. Also drop trailing spaces and reword the CNAME check's error message (master no longer has a valid copy to restore from). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01WZKhoAfa499EJsRM8WjrJq

Makes the repo easier for coding agents (and reviewers) to work in. No site content is changed.
What's added
AGENTS.md(+CLAUDE.md=@AGENTS.md): where things live, how to preview (python3 -m http.server 8000), and rules: never touchCNAME, case-sensitive paths, alt text, image size, Font Awesome 5 prefixes, nothing private in the repo.scripts/check_site.py: a check that uses only the Python standard library. It fails on missing localhref/srctargets (including case mismatches likepic04.jpgvspic04.JPG),#anchorlinks with no matchingid,<img>withoutalt, broken CSSurl(), and a malformedCNAME. HTML comments are ignored..github/workflows/ci.yml: runs the check on PRs and on pushes tomaster(contents: read)..github/skills/code-review/SKILL.md: a review guide based on this repo's own fix commits (case-sensitive image paths, blank FA icons, a private PDF that was committed, 7 MB photos, danglinggapminder.html/iframe embeds, nav label drift).Verification
python3 scripts/check_site.pypasses on currentmaster.#worksanchor that doesn't exist, a removedalt,https://in CNAME, wrong-casebg.JPGin main.css). All five were reported with exit 1, and I then reverted them.python3 -m http.serverserves/and/images/pic04.JPGwith status 200.Notes (not fixed here)
images/bg.jpg(2.9 MB),pic05.JPG(2.7 MB) andpic04.JPG(1.6 MB) are large..DS_Storefiles are committed, and there's no.gitignore..github/dependabot.ymlhas an emptypackage-ecosystem.🤖 Generated with Claude Code
https://claude.ai/code/session_01WZKhoAfa499EJsRM8WjrJq
Generated by Claude Code