<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Haider Ali</title>
    <description>The latest articles on DEV Community by Haider Ali (@haiderstudio).</description>
    <link>https://dev.to/haiderstudio</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4234625%2Fe1a1ae92-c116-4b91-9725-7067df8a4313.jpg</url>
      <title>DEV Community: Haider Ali</title>
      <link>https://dev.to/haiderstudio</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/haiderstudio"/>
    <language>en</language>
    <item>
      <title>Missing files only show up after you publish. This CLI checks the whole list first.</title>
      <dc:creator>Haider Ali</dc:creator>
      <pubDate>Sun, 22 Nov 2026 10:14:31 +0000</pubDate>
      <link>https://dev.to/haiderstudio/missing-files-only-show-up-after-you-publish-this-cli-checks-the-whole-list-first-4f3h</link>
      <guid>https://dev.to/haiderstudio/missing-files-only-show-up-after-you-publish-this-cli-checks-the-whole-list-first-4f3h</guid>
      <description>&lt;p&gt;You finish a small tool, push it to GitHub, share the link. Then someone opens it and the README has no install steps. Or there is no licence file. Or the CI workflow exists but never actually runs a test. You find out from a stranger — or you never find out at all.&lt;/p&gt;

&lt;p&gt;A checklist in your head does not catch this. I kept forgetting one file or another, so I made the checklist a command.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;repo-hygiene-checker-cli&lt;/code&gt; is a Python CLI. Standard library only. It reads a repo and checks it against a fixed publish list, and reports each check as one of four things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;PASS&lt;/code&gt; — the check ran and the repo has it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;FAIL&lt;/code&gt; — the check ran and the repo is missing it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;WARN&lt;/code&gt; — a recommended file is missing, not a required one.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;SKIP&lt;/code&gt; — the check could not run, with the reason given.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A check is never reported PASS unless it actually ran. If something cannot be checked, it says so — it never guesses.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it checks
&lt;/h2&gt;

&lt;p&gt;Required — a missing one is a FAIL:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;README exists, is not empty, and has a top-level heading, with Install, Usage, and Examples sections.&lt;/li&gt;
&lt;li&gt;A licence file exists and actually contains MIT licence text. A file named LICENSE with other text inside fails.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;.gitignore&lt;/code&gt; exists and actually covers &lt;code&gt;.env&lt;/code&gt; plus Python cache files when the repo has Python in it.&lt;/li&gt;
&lt;li&gt;A CI workflow exists in &lt;code&gt;.github/workflows/&lt;/code&gt; and contains a step that runs tests. A workflow with no test step fails.&lt;/li&gt;
&lt;li&gt;At least one issue template exists in &lt;code&gt;.github/ISSUE_TEMPLATE/&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Recommended — a missing one is a WARN, not a FAIL (&lt;code&gt;--strict&lt;/code&gt; turns warnings into failures):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;CONTRIBUTING.md and SECURITY.md present.&lt;/li&gt;
&lt;li&gt;A &lt;code&gt;tests/&lt;/code&gt; directory with at least one test file.&lt;/li&gt;
&lt;li&gt;If the repo has a &lt;code&gt;skills/&lt;/code&gt; directory, every &lt;code&gt;skills/*/SKILL.md&lt;/code&gt; carries &lt;code&gt;name:&lt;/code&gt; and &lt;code&gt;description:&lt;/code&gt; frontmatter.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;With &lt;code&gt;--online&lt;/code&gt; only, it also checks the GitHub description is non-empty and at least one topic is set, read from the public GitHub API with no token. Without &lt;code&gt;--online&lt;/code&gt; both report SKIP, never PASS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip install repo-hygiene-checker-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Point it at a repo:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;repo-hygiene-checker /path/to/your-repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The repo ships with an &lt;code&gt;examples/&lt;/code&gt; folder you can try first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/haiderstudio/repo-hygiene-checker-cli.git
&lt;span class="nb"&gt;cd&lt;/span&gt; repo-hygiene-checker-cli
repo-hygiene-checker examples/good-repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Real output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;repo-hygiene-checker: examples/good-repo
PASS  README: README.md present, non-empty, has heading
PASS  README sections: Install, Usage, and Examples sections present
PASS  Licence (MIT): LICENSE contains MIT licence text
PASS  .gitignore: .gitignore present, non-empty
PASS  .gitignore coverage: .env and Python cache patterns covered
PASS  CI runs tests: ci.yml contains a step that runs tests
PASS  Issue templates: 1 template(s) in .github/ISSUE_TEMPLATE/
PASS  CONTRIBUTING.md: CONTRIBUTING.md present
PASS  SECURITY.md: SECURITY.md present
SKIP  Skill frontmatter: no skills/ directory
PASS  Tests present: 1 test file(s) in tests/
SKIP  GitHub description: needs --online (no network call made)
SKIP  GitHub topics: needs --online (no network call made)
repo-hygiene-checker: 10 passed, 0 failed, 0 warnings, 3 skipped
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A bad repo fails five checks and exits 1, so you see the whole list at once instead of finding problems one at a time.&lt;/p&gt;

&lt;h2&gt;
  
  
  Useful flags
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Also check the GitHub description and topics (one public API read, no token)&lt;/span&gt;
repo-hygiene-checker --online /path/to/your-repo

&lt;span class="c"&gt;# Machine-readable output for CI&lt;/span&gt;
repo-hygiene-checker --format json /path/to/your-repo

&lt;span class="c"&gt;# Treat warnings as failures (for CI gates)&lt;/span&gt;
repo-hygiene-checker --strict /path/to/your-repo
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Exit code 0 means no failures (warnings allowed), 1 means at least one failure, 2 means a usage error such as a missing path — so it drops straight into CI as a gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;It does not fix anything. It only reads and reports — no file is ever written, deleted, or renamed. It does not check README quality, spelling, or whether your code is correct — only that the publish list is present and followed. And it does not send your code anywhere. Without &lt;code&gt;--online&lt;/code&gt; it makes no network call at all.&lt;/p&gt;

&lt;p&gt;I built it because I publish small tools one after another and the same files kept going missing. Other checkers I tried either scored the repo and auto-generated files, or only checked that a file with the right name exists. This one checks the content — the licence text, the &lt;code&gt;.gitignore&lt;/code&gt; patterns, whether CI actually runs tests — and it never writes anything.&lt;/p&gt;

&lt;p&gt;The repo is MIT licensed: &lt;a href="https://github.com/haiderstudio/repo-hygiene-checker-cli" rel="noopener noreferrer"&gt;https://github.com/haiderstudio/repo-hygiene-checker-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If it catches a missing file in your repo before you publish, a star helps other people find it.&lt;/p&gt;

</description>
      <category>python</category>
      <category>cli</category>
      <category>opensource</category>
      <category>github</category>
    </item>
    <item>
      <title>Broken links in docs are silent. This Python CLI names the broken kind.</title>
      <dc:creator>Haider Ali</dc:creator>
      <pubDate>Mon, 09 Nov 2026 18:25:20 +0000</pubDate>
      <link>https://dev.to/haiderstudio/broken-links-in-docs-are-silent-this-python-cli-names-the-broken-kind-16li</link>
      <guid>https://dev.to/haiderstudio/broken-links-in-docs-are-silent-this-python-cli-names-the-broken-kind-16li</guid>
      <description>&lt;p&gt;You update a docs page, move a file, rename a heading. Nothing breaks loudly. A reader clicks a link weeks later and lands on a 404 — or worse, on the right page with the wrong anchor, staring at the top while the section they wanted is three screens down.&lt;/p&gt;

&lt;p&gt;Most link checkers give you one word: broken. This one tells you which kind of broken, because the fix is different.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;broken-link-checker-cli&lt;/code&gt; is a Python CLI. Standard library only. It scans &lt;code&gt;.md&lt;/code&gt;, &lt;code&gt;.markdown&lt;/code&gt; and &lt;code&gt;.html&lt;/code&gt; files, checks every link for real, and reports each link as one of three things:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;OK&lt;/code&gt; — the page exists, and the anchor on it exists too.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;BROKEN (page)&lt;/code&gt; — the page itself is missing.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;BROKEN (anchor)&lt;/code&gt; — the page exists, the anchor on it does not.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;A link is never reported OK unless its check actually ran. If an anchor cannot be checked (a PDF, for example), the link is reported &lt;code&gt;SKIPPED&lt;/code&gt; with the reason — never silently OK. Links inside fenced code blocks and inline code are ignored, so code samples never produce false failures. &lt;code&gt;mailto:&lt;/code&gt; and &lt;code&gt;tel:&lt;/code&gt; links are skipped, not flagged.&lt;/p&gt;

&lt;h2&gt;
  
  
  Try it
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;pip &lt;span class="nb"&gt;install &lt;/span&gt;broken-link-checker-cli
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Point it at your docs folder:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;broken-link-checker docs/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The repo ships with an &lt;code&gt;examples/&lt;/code&gt; folder you can try first — one link in there is deliberately broken:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;git clone https://github.com/haiderstudio/broken-link-checker-cli.git
&lt;span class="nb"&gt;cd &lt;/span&gt;broken-link-checker-cli
broken-link-checker examples/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Real output:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;examples/sample-docs.md:3: other-page.md -&amp;gt; OK
examples/sample-docs.md:5: #sample-docs -&amp;gt; OK
examples/sample-docs.md:8: missing-page.md -&amp;gt; BROKEN (page) (file does not exist)
2 ok, 1 broken, 0 skipped
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remote links are checked with HEAD, falling back to GET where a server refuses HEAD. If a remote link has an anchor, the fetched page must carry that &lt;code&gt;id&lt;/code&gt; or &lt;code&gt;name&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Useful flags
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Local files only — works fully offline&lt;/span&gt;
broken-link-checker &lt;span class="nt"&gt;--local-only&lt;/span&gt; docs/

&lt;span class="c"&gt;# Machine-readable output for CI&lt;/span&gt;
broken-link-checker &lt;span class="nt"&gt;--format&lt;/span&gt; json docs/

&lt;span class="c"&gt;# Skip URLs matching a pattern (repeatable)&lt;/span&gt;
broken-link-checker &lt;span class="nt"&gt;--exclude&lt;/span&gt; &lt;span class="s1"&gt;'example\.com'&lt;/span&gt; docs/
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Exit code 0 means no broken links, 1 means at least one broken link, 2 means a usage error such as a missing path — so it drops straight into CI as a gate.&lt;/p&gt;

&lt;h2&gt;
  
  
  What it does not do
&lt;/h2&gt;

&lt;p&gt;It does not rewrite any file, follow JavaScript-rendered pages, or log in anywhere. It only reads and reports. It does not send your docs anywhere — remote checks are plain requests to the linked URL itself.&lt;/p&gt;

&lt;p&gt;I built it because every docs check I tried either needed a service, a Node install, or reported "broken" without saying which part was broken. This one is one file, stdlib only, and the output tells you exactly what to fix.&lt;/p&gt;

&lt;p&gt;The repo is MIT licensed: &lt;a href="https://github.com/haiderstudio/broken-link-checker-cli" rel="noopener noreferrer"&gt;https://github.com/haiderstudio/broken-link-checker-cli&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If it catches a broken link in your docs, a star helps other people find it.&lt;/p&gt;

</description>
      <category>python</category>
      <category>cli</category>
      <category>opensource</category>
      <category>github</category>
    </item>
  </channel>
</rss>
