Skip to content

Commit 48ef4b6

Browse files
author
committed
Deployed 8e33ef2 with MkDocs version: 1.6.1
1 parent de7799a commit 48ef4b6

4 files changed

Lines changed: 171 additions & 2 deletions

File tree

‎cli-reference.html‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,6 +620,17 @@
620620
<nav class="md-nav" aria-label="studyctl">
621621
<ul class="md-nav__list">
622622

623+
<li class="md-nav__item">
624+
<a href="#health-updates" class="md-nav__link">
625+
<span class="md-ellipsis">
626+
627+
Health &amp; Updates
628+
629+
</span>
630+
</a>
631+
632+
</li>
633+
623634
<li class="md-nav__item">
624635
<a href="#confidence-levels" class="md-nav__link">
625636
<span class="md-ellipsis">
@@ -982,6 +993,17 @@
982993
<nav class="md-nav" aria-label="studyctl">
983994
<ul class="md-nav__list">
984995

996+
<li class="md-nav__item">
997+
<a href="#health-updates" class="md-nav__link">
998+
<span class="md-ellipsis">
999+
1000+
Health &amp; Updates
1001+
1002+
</span>
1003+
</a>
1004+
1005+
</li>
1006+
9851007
<li class="md-nav__item">
9861008
<a href="#confidence-levels" class="md-nav__link">
9871009
<span class="md-ellipsis">
@@ -1113,6 +1135,46 @@ <h2 id="studyctl">studyctl<a class="headerlink" href="#studyctl" title="Permanen
11131135
studyctl<span class="w"> </span>tui<span class="w"> </span><span class="c1"># Launch interactive TUI dashboard</span>
11141136
studyctl<span class="w"> </span>docs<span class="w"> </span><span class="nb">read</span><span class="w"> </span>PAGE<span class="w"> </span><span class="c1"># Read a page aloud via study-speak</span>
11151137
</code></pre></div>
1138+
<h3 id="health-updates">Health &amp; Updates<a class="headerlink" href="#health-updates" title="Permanent link">&para;</a></h3>
1139+
<p>Check your installation and keep it current:</p>
1140+
<div class="highlight"><pre><span></span><code>studyctl<span class="w"> </span>doctor<span class="w"> </span><span class="c1"># Full health check (Rich table)</span>
1141+
studyctl<span class="w"> </span>doctor<span class="w"> </span>--json<span class="w"> </span><span class="c1"># JSON output (for AI agents and CI)</span>
1142+
studyctl<span class="w"> </span>doctor<span class="w"> </span>--quiet<span class="w"> </span><span class="c1"># One-line summary</span>
1143+
studyctl<span class="w"> </span>doctor<span class="w"> </span>--category<span class="w"> </span>core<span class="w"> </span><span class="c1"># Check specific category only</span>
1144+
studyctl<span class="w"> </span>update<span class="w"> </span><span class="c1"># Check for available updates (no changes)</span>
1145+
studyctl<span class="w"> </span>update<span class="w"> </span>--json<span class="w"> </span><span class="c1"># Machine-readable update info</span>
1146+
studyctl<span class="w"> </span>upgrade<span class="w"> </span><span class="c1"># Apply all available updates</span>
1147+
studyctl<span class="w"> </span>upgrade<span class="w"> </span>--dry-run<span class="w"> </span><span class="c1"># Preview what would change</span>
1148+
studyctl<span class="w"> </span>upgrade<span class="w"> </span>--component<span class="w"> </span>packages<span class="w"> </span><span class="c1"># Upgrade only packages</span>
1149+
studyctl<span class="w"> </span>upgrade<span class="w"> </span>--component<span class="w"> </span>database<span class="w"> </span><span class="c1"># Run DB migrations only</span>
1150+
studyctl<span class="w"> </span>upgrade<span class="w"> </span>--component<span class="w"> </span>agents<span class="w"> </span><span class="c1"># Update agent definitions only</span>
1151+
studyctl<span class="w"> </span>upgrade<span class="w"> </span>--force<span class="w"> </span><span class="c1"># Upgrade even if already current</span>
1152+
</code></pre></div>
1153+
<p><strong>Exit codes for <code>studyctl doctor</code>:</strong></p>
1154+
<table>
1155+
<thead>
1156+
<tr>
1157+
<th>Code</th>
1158+
<th>Meaning</th>
1159+
</tr>
1160+
</thead>
1161+
<tbody>
1162+
<tr>
1163+
<td><code>0</code></td>
1164+
<td>All checks pass — installation is healthy</td>
1165+
</tr>
1166+
<tr>
1167+
<td><code>1</code></td>
1168+
<td>Warnings or failures that can be fixed — run <code>studyctl upgrade</code></td>
1169+
</tr>
1170+
<tr>
1171+
<td><code>2</code></td>
1172+
<td>Core failure — a fundamental component is broken (e.g. wrong Python version)</td>
1173+
</tr>
1174+
</tbody>
1175+
</table>
1176+
<p><strong>Check categories:</strong> <code>core</code> (Python, packages, config), <code>database</code> (review DB, sessions DB), <code>config</code> (Obsidian vault, review dirs, pandoc), <code>deps</code> (optional packages), <code>agents</code> (AI tool definitions), <code>updates</code> (PyPI versions).</p>
1177+
<p><strong>AI-guided setup:</strong> The install-mentor agent at <code>agents/shared/install-mentor.md</code> uses <code>studyctl doctor --json</code> to walk users through setup conversationally. It works with any AI coding tool (Claude Code, Kiro, Gemini CLI, OpenCode, Amp).</p>
11161178
<h3 id="confidence-levels">Confidence Levels<a class="headerlink" href="#confidence-levels" title="Permanent link">&para;</a></h3>
11171179
<p>Used with <code>studyctl progress</code>:</p>
11181180
<table>

‎search/search_index.js‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎search/search_index.json‎

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

‎setup-guide.html‎

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,34 @@
799799
</ul>
800800
</nav>
801801

802+
</li>
803+
804+
<li class="md-nav__item">
805+
<a href="#verify-installation" class="md-nav__link">
806+
<span class="md-ellipsis">
807+
808+
Verify Installation
809+
810+
</span>
811+
</a>
812+
813+
<nav class="md-nav" aria-label="Verify Installation">
814+
<ul class="md-nav__list">
815+
816+
<li class="md-nav__item">
817+
<a href="#ai-guided-setup" class="md-nav__link">
818+
<span class="md-ellipsis">
819+
820+
AI-Guided Setup
821+
822+
</span>
823+
</a>
824+
825+
</li>
826+
827+
</ul>
828+
</nav>
829+
802830
</li>
803831

804832
<li class="md-nav__item">
@@ -813,6 +841,17 @@
813841
<nav class="md-nav" aria-label="Troubleshooting">
814842
<ul class="md-nav__list">
815843

844+
<li class="md-nav__item">
845+
<a href="#first-step-run-studyctl-doctor" class="md-nav__link">
846+
<span class="md-ellipsis">
847+
848+
First step: run studyctl doctor
849+
850+
</span>
851+
</a>
852+
853+
</li>
854+
816855
<li class="md-nav__item">
817856
<a href="#studyctl-command-not-found" class="md-nav__link">
818857
<span class="md-ellipsis">
@@ -1805,6 +1844,34 @@
18051844
</ul>
18061845
</nav>
18071846

1847+
</li>
1848+
1849+
<li class="md-nav__item">
1850+
<a href="#verify-installation" class="md-nav__link">
1851+
<span class="md-ellipsis">
1852+
1853+
Verify Installation
1854+
1855+
</span>
1856+
</a>
1857+
1858+
<nav class="md-nav" aria-label="Verify Installation">
1859+
<ul class="md-nav__list">
1860+
1861+
<li class="md-nav__item">
1862+
<a href="#ai-guided-setup" class="md-nav__link">
1863+
<span class="md-ellipsis">
1864+
1865+
AI-Guided Setup
1866+
1867+
</span>
1868+
</a>
1869+
1870+
</li>
1871+
1872+
</ul>
1873+
</nav>
1874+
18081875
</li>
18091876

18101877
<li class="md-nav__item">
@@ -1819,6 +1886,17 @@
18191886
<nav class="md-nav" aria-label="Troubleshooting">
18201887
<ul class="md-nav__list">
18211888

1889+
<li class="md-nav__item">
1890+
<a href="#first-step-run-studyctl-doctor" class="md-nav__link">
1891+
<span class="md-ellipsis">
1892+
1893+
First step: run studyctl doctor
1894+
1895+
</span>
1896+
</a>
1897+
1898+
</li>
1899+
18221900
<li class="md-nav__item">
18231901
<a href="#studyctl-command-not-found" class="md-nav__link">
18241902
<span class="md-ellipsis">
@@ -2418,7 +2496,36 @@ <h3 id="obsidian-vault-path">Obsidian vault path<a class="headerlink" href="#obs
24182496
<div class="highlight"><pre><span></span><code><span class="nt">obsidian_base</span><span class="p">:</span><span class="w"> </span><span class="l l-Scalar l-Scalar-Plain">/mnt/c/Users/YourName/Obsidian</span>
24192497
</code></pre></div>
24202498
<p>For better performance, consider keeping the vault inside WSL2's native filesystem (<code>~/Obsidian/</code>) and syncing with Obsidian Sync or Git.</p>
2499+
<h2 id="verify-installation">Verify Installation<a class="headerlink" href="#verify-installation" title="Permanent link">&para;</a></h2>
2500+
<p>After installing and configuring, run the health check to make sure everything is working:</p>
2501+
<div class="highlight"><pre><span></span><code>studyctl<span class="w"> </span>doctor
2502+
</code></pre></div>
2503+
<p>This checks Python version, installed packages, config validity, databases, optional dependencies, and AI agent definitions. You'll see a colour-coded table:</p>
2504+
<ul>
2505+
<li>Green tick = healthy</li>
2506+
<li>Yellow ! = warning (often auto-fixable)</li>
2507+
<li>Red cross = failure (needs attention)</li>
2508+
<li>Blue i = informational (optional)</li>
2509+
</ul>
2510+
<p>If issues are found:</p>
2511+
<div class="highlight"><pre><span></span><code>studyctl<span class="w"> </span>upgrade<span class="w"> </span><span class="c1"># Fix auto-fixable issues (packages, DB, agents)</span>
2512+
studyctl<span class="w"> </span>upgrade<span class="w"> </span>--dry-run<span class="w"> </span><span class="c1"># Preview changes first</span>
2513+
</code></pre></div>
2514+
<p>For machine-readable output (used by CI pipelines and AI agents):</p>
2515+
<div class="highlight"><pre><span></span><code>studyctl<span class="w"> </span>doctor<span class="w"> </span>--json
2516+
</code></pre></div>
2517+
<h3 id="ai-guided-setup">AI-Guided Setup<a class="headerlink" href="#ai-guided-setup" title="Permanent link">&para;</a></h3>
2518+
<p>If you're using an AI coding assistant, the <strong>install-mentor agent</strong> can guide you through the entire setup process conversationally. It automatically detects your environment, installs packages, runs <code>studyctl doctor</code>, and fixes issues.</p>
2519+
<p>The prompt lives at <code>agents/shared/install-mentor.md</code> and works with any AI tool that can run shell commands — Claude Code, Kiro CLI, Gemini CLI, OpenCode, or Amp.</p>
2520+
<p>To use it in Claude Code:
2521+
<div class="highlight"><pre><span></span><code>Read agents/shared/install-mentor.md and follow its instructions to set up studyctl
2522+
</code></pre></div></p>
24212523
<h2 id="troubleshooting">Troubleshooting<a class="headerlink" href="#troubleshooting" title="Permanent link">&para;</a></h2>
2524+
<h3 id="first-step-run-studyctl-doctor">First step: run <code>studyctl doctor</code><a class="headerlink" href="#first-step-run-studyctl-doctor" title="Permanent link">&para;</a></h3>
2525+
<p>Before investigating specific issues, always start with the health check:</p>
2526+
<div class="highlight"><pre><span></span><code>studyctl<span class="w"> </span>doctor
2527+
</code></pre></div>
2528+
<p>This will identify most common problems and tell you how to fix them. If auto-fixable issues are found, run <code>studyctl upgrade</code> to resolve them.</p>
24222529
<h3 id="studyctl-command-not-found"><code>studyctl: command not found</code><a class="headerlink" href="#studyctl-command-not-found" title="Permanent link">&para;</a></h3>
24232530
<p>The package isn't on your PATH. Either:
24242531
- Run via <code>uv run studyctl</code> instead

0 commit comments

Comments
 (0)