# Doctrina > Portable rules and skills for LLM coding agents, and free, self-paced courses built with them. Any repository can copy a rule or skill and fill in the values that are specific to it. Doctrina is written by Joseph Abbott III ([jabbott.dev](https://jabbott.dev/)). Its source is at https://github.com/jabbott-iii/Doctrina. The rules, skills, and code are under the MIT License, and the courses' text and figures are under the Creative Commons Attribution 4.0 International license (CC BY 4.0). - A rule is a Markdown file of standards that a large language model (LLM) coding agent follows while it works in a repository, which keeps it in `.claude/rules/`. The values that differ between repositories go in its **Project details** section, as `[FILL IN: …]` placeholders that each repository fills in when it copies the rule. - A rule without `paths` front matter applies in every session. A rule with `paths` applies only when the LLM works on a file that matches one of its patterns. - A skill is a folder with a `SKILL.md` file that teaches an LLM coding agent a whole task, started with a slash command. A skill has no values of its own: it uses the **Project details** of the rules it relies on. - Each course is a free, self-paced Jupyter Book of readings, notebook labs, practice exercises, self-tests, and assignments. - Each link below to a rule or skill is its Markdown file, ready to copy. ## Pages - [Home](https://jabbott.dev/Doctrina/): Portable rules and skills for LLM coding agents, and free, self-paced courses built with them. - [Skills](https://jabbott.dev/Doctrina/skills/): Doctrina's 13 portable skills for LLM coding agents: slash commands that build courses, roadmaps, and language packs, and sweep code for bugs. - [Rules](https://jabbott.dev/Doctrina/rules/): Doctrina's 25 portable rules for LLM coding agents: writing, commits, testing, and standards for each language and platform, ready to copy. ## Rules - [Writing](https://jabbott.dev/Doctrina/rules/writing.md): Spelling, grammar, numbers and units, technical writing for an audience from students to senior engineers, and a check to run before finishing. It covers all prose in a repository, including code comments and commit messages. Loads in every session. - [Web front-end](https://jabbott.dev/Doctrina/rules/web-front-end.md): How to build a website or web app as a senior front-end developer, covering semantic HTML, CSS that meets the Web Content Accessibility Guidelines (WCAG) 2.2 at level AA, progressively enhanced JavaScript, languages and right-to-left layout, security and privacy, performance budgets, hosting limits, and the checks to run in the browser. It relies on `writing.md` for page text and YAML checks, so adopt both. Loads for files that match `**/*.html`, `**/*.htm`, `**/*.css`, `**/*.scss`, `**/*.js`, `**/*.mjs`, `**/*.ts`. - [Commits](https://jabbott.dev/Doctrina/rules/commits.md): Copy-ready commit messages, how much Git the LLM may run, one change per commit, the Conventional Commits format, and pull request descriptions, with no attribution lines. It relies on `writing.md` for the text of each message, so adopt both. Loads in every session. - [Dependencies](https://jabbott.dev/Doctrina/rules/dependencies.md): How to build with no third-party code. Packages come only from the accounts a repository names as its own, checked by their owners on the registry and where their source lives. A third-party package is allowed only when it can't be avoided, because the platform, a closed format, a law or contract, or security requires it, and only after the user approves it. It covers what counts as a dependency, from the packages other packages bring in to continuous integration (CI) actions and copied code, the order to look for a solution in, what to tell the user when asking, updates, and the dependencies a repository already has. Set each language rule's **Dependency policy** to point to it. It relies on `writing.md`, so adopt both. Loads in every session. - [Testing](https://jabbott.dev/Doctrina/rules/testing.md): How to test as strictly as the code allows. It covers never weakening a test to make it pass, covering every line and branch, mutation testing to check that the tests catch changes, exact and deterministic tests, performance budgets that fail the build, security tests with hostile input and fuzzing, required checks in CI, and a diff check for new skips and removed assertions. It relies on `writing.md` and on the language rules' test commands, and on `dependencies.md` for test tools where that rule is adopted. Loads in every session. - [Pair programming](https://jabbott.dev/Doctrina/rules/pair-programming.md): How to work with the user as a pair, in which you write the code or draft the material, and they review it and make the calls that are theirs. It covers reading before you write, saying the plan first, asking before the decisions that are the user's, pushing back with reasons, small steps checked one at a time, fixing causes instead of silencing tools, focused changes, explanations at the depth the user wants, a review of your own diff, and an honest report. The other rules add what their own work needs: the changes listed in each one's "Decisions that are the user's" section, and the checks and warnings in each language rule's "Making a change" section. It relies on `writing.md`, so adopt both. Loads in every session. - [Rust](https://jabbott.dev/Doctrina/rules/rust.md): How to write Rust as a senior engineer, covering type design, ownership, errors, text for users and its translations, hostile input, concurrency, `unsafe`, public APIs, tests, lints, and dependencies. Its documentation section covers doc comments and crate docs for docs.rs, a tested README for each crate on crates.io, and the docs.rs and crates.io metadata. It relies on `writing.md` for doc comments and error messages, so adopt both. Loads for files that match `**/*.rs`, `**/Cargo.toml`, `Cargo.lock`, `rust-toolchain.toml`, `clippy.toml`, `rustfmt.toml`, `deny.toml`, `.cargo/**`. - [C](https://jabbott.dev/Doctrina/rules/c.md): How to write C as a senior engineer, covering what each standard from C99 to C23 adds and which compilers support it, type design, memory ownership and cleanup, strings and buffers, undefined behavior and integer traps, errors and `errno`, files, processes, and signals, threads, text for users and its translations through gettext, hostile input and fuzzing, portability and freestanding code, headers and application binary interface (ABI) compatibility, header comments and library READMEs, tests under the sanitizers, warnings and hardening flags, and builds. It relies on `writing.md` for comments and error messages, so adopt both. Loads for files that match `**/*.c`, `**/*.h`, `**/*.h.in`, `**/CMakeLists.txt`, `**/*.cmake`, `CMakePresets.json`, `**/meson.build`, `meson.options`, `meson_options.txt`, `**/Makefile`, `**/*.mk`, `**/Makefile.am`, `configure.ac`, `**/*.pc.in`, `.clang-format`, `.clang-tidy`. - [C++](https://jabbott.dev/Doctrina/rules/cpp.md): How to write C++ as a senior engineer, covering what each standard from C++11 to C++26 adds and how to check that every compiler and standard library has it, type design and the rule of zero, ownership through destructors and smart pointers, the lifetimes of references, views, and iterators, undefined behavior and integer traps, exceptions and `std::expected`, files and processes, threads and coroutines, text for users and its translations, locales, hostile input and fuzzing, portability and freestanding code, headers, modules, and ABI compatibility, header comments and library READMEs, tests under the sanitizers and the standard library's checked modes, warnings and hardening flags, performance, and builds. It relies on `writing.md` for comments and error messages, so adopt both. C code in the same repository follows `c.md`. Loads for files that match `**/*.cpp`, `**/*.cc`, `**/*.cxx`, `**/*.c++`, `**/*.hpp`, `**/*.hh`, `**/*.hxx`, `**/*.h++`, `**/*.h`, `**/*.ipp`, `**/*.tpp`, `**/*.inl`, `**/*.cppm`, `**/*.ixx`, `**/*.hpp.in`, `**/*.h.in`, `**/CMakeLists.txt`, `**/*.cmake`, `CMakePresets.json`, `**/meson.build`, `meson.options`, `meson_options.txt`, `**/BUILD.bazel`, `MODULE.bazel`, `**/Makefile`, `**/*.mk`, `vcpkg.json`, `vcpkg-configuration.json`, `conanfile.txt`, `conanfile.py`, `**/*.pc.in`, `.clang-format`, `.clang-tidy`. - [Kotlin](https://jabbott.dev/Doctrina/rules/kotlin.md): How to write Kotlin as a senior engineer, covering type design, null safety, errors, coroutines and Flow, text for users and its translations, hostile input, Java and platform interop, binary compatibility, KDoc and Dokka docs, module READMEs, tests, lints, and Gradle builds. It relies on `writing.md` for KDoc and error messages, so adopt both. Loads for files that match `**/*.kt`, `**/*.kts`, `gradle/libs.versions.toml`, `gradle.properties`, `gradle/wrapper/gradle-wrapper.properties`, `build-logic/**`, `.editorconfig`, `**/detekt*.yml`. - [Java](https://jabbott.dev/Doctrina/rules/java.md): How to write Java as a senior engineer, covering the features each release adds and compiling with `--release`, records and sealed types, nulls, traps such as boxed `==` and `BigDecimal.equals`, exceptions and interrupts, logging, `java.time` and money, files and processes, virtual threads and other concurrency, text for users and its translations, untrusted input, including XML external entities and deserialization, the FFM API and JNI, public APIs and binary compatibility, Javadoc with snippets, READMEs and Maven Central metadata, JUnit tests, lints, and Gradle and Maven builds. It relies on `writing.md` for Javadoc and error messages, so adopt both. Loads for files that match `**/*.java`, `**/pom.xml`, `**/*.gradle`, `**/*.gradle.kts`, `gradle/libs.versions.toml`, `gradle.properties`, `gradle/wrapper/gradle-wrapper.properties`, `gradle/verification-metadata.xml`, `.mvn/**`, `build-logic/**`, `.java-version`, `.sdkmanrc`. - [Android and Jetpack Compose](https://jabbott.dev/Doctrina/rules/android.md): How to build Android apps with Jetpack Compose as a senior mobile developer, covering app architecture, Compose state and performance, adaptive layouts, accessibility, translations, lifecycle and process death, background work, Room migrations, security and privacy, tests, and release builds. It relies on `kotlin.md` for the language and on `writing.md` for strings, so adopt all three. Loads for files that match `**/*.kt`, `**/AndroidManifest.xml`, `**/src/*/res/**`, `**/proguard-rules.pro`, `**/consumer-rules.pro`, `**/schemas/**`. - [Kotlin Multiplatform](https://jabbott.dev/Doctrina/rules/kotlin-multiplatform.md): How to share Kotlin code between Android and iOS as a senior mobile developer, covering what to share, source sets and targets, common-code limits, platform APIs, the API that Swift sees, coroutines across platforms, the Xcode toolchain, and tests on every target. Its Compose Multiplatform section covers shared UI: setup and entry points, shared resources, iOS behavior and look, native views, accessibility, iOS performance, previews, and UI tests. It relies on `kotlin.md`, `android.md`, `swift.md`, and `writing.md`, so adopt all five. Loads for files that match `**/src/*Main/**`, `**/src/*Test/**`, `**/build.gradle.kts`, `**/composeResources/**`, `**/*.swift`, `**/Package.swift`, `**/*.podspec`, `iosApp/**`. - [Swift and SwiftUI](https://jabbott.dev/Doctrina/rules/swift.md): How to write Swift and SwiftUI as a senior mobile developer, covering type design, optionals and errors, memory, strict concurrency, SwiftUI state and identity, layout, accessibility, localization, persistence, security and privacy, Kotlin Multiplatform interop, tests, and release. It relies on `writing.md` for doc comments and strings, so adopt both. Loads for files that match `**/*.swift`, `**/Package.swift`, `**/Package.resolved`, `**/*.xcstrings`, `**/*.xcprivacy`, `**/*.entitlements`, `**/Info.plist`, `**/*.xcodeproj/**`, `**/.swiftlint.yml`, `**/.swift-format`. - [Dart and Flutter](https://jabbott.dev/Doctrina/rules/flutter.md): How to build cross-platform mobile apps with Dart and Flutter as a senior mobile developer, covering Dart types, errors, and isolates, widgets and `build`, layout and performance, state management, navigation, platform adaptation, accessibility, localization, platform channels, data and security, tests, and release. It relies on `writing.md`, and on `android.md`, `kotlin.md`, and `swift.md` for native code, so adopt those that apply. Loads for files that match `**/*.dart`, `**/pubspec.yaml`, `**/pubspec.lock`, `**/analysis_options.yaml`, `**/l10n.yaml`, `**/*.arb`, `**/build.yaml`, `**/.fvmrc`. - [Lua](https://jabbott.dev/Doctrina/rules/lua.md): How to write Lua as a senior engineer, covering the differences between Lua 5.1, 5.4, 5.5, and LuaJIT, locals and modules, tables and strings, numbers, errors and cleanup, metatables, coroutines inside a host's event loop, performance, text for users and its translations, untrusted input, sandboxing code the program didn't ship, the C API and LuaJIT's FFI, LuaCATS or LDoc docs, rockspecs, tests on every supported version, and lints. It relies on `writing.md` for doc comments and error messages, so adopt both. Loads for files that match `**/*.lua`, `**/*.rockspec`, `.luacheckrc`, `.luarc.json`, `selene.toml`, `stylua.toml`, `.stylua.toml`, `.busted`. - [Python](https://jabbott.dev/Doctrina/rules/python.md): How to write Python as a senior engineer, covering the features each version adds, type hints and data design, traps such as mutable default arguments and late-binding closures, exceptions, files and encodings, logging, time and money, text for users and its translations through gettext, untrusted input, threads, processes, and `asyncio`, native code, public APIs, docstrings, READMEs and metadata for the Python Package Index (PyPI), tests with pytest, lints and type checking, and packaging with `pyproject.toml` and lock files. It relies on `writing.md` for docstrings and error messages, so adopt both. Loads for files that match `**/*.py`, `**/*.pyi`, `**/pyproject.toml`, `uv.lock`, `poetry.lock`, `pylock*.toml`, `**/requirements*.txt`, `**/requirements*.in`, `setup.cfg`, `tox.ini`, `pytest.ini`, `mypy.ini`, `pyrightconfig.json`, `ruff.toml`, `.ruff.toml`, `.python-version`. - [TypeScript and JavaScript](https://jabbott.dev/Doctrina/rules/typescript.md): How to write TypeScript and JavaScript as a senior engineer, on Node.js, in browsers, or both, covering runtimes and ES modules, Node.js running `.ts` files directly, strict compiler options, type design, traps such as the default sort order and the limits of `number`, errors and unhandled promises, logging, async code and cancellation, text for users and its translations through `Intl`, untrusted input and prototype pollution, native addons, public APIs and the `exports` field, doc comments, READMEs and metadata for npm, tests, linting with type information, and dependencies and install scripts. It relies on `writing.md` for doc comments and error messages, so adopt both. Code that runs in web pages also follows `web-front-end.md`. Loads for files that match `**/*.ts`, `**/*.tsx`, `**/*.mts`, `**/*.cts`, `**/*.js`, `**/*.jsx`, `**/*.mjs`, `**/*.cjs`, `**/package.json`, `package-lock.json`, `pnpm-lock.yaml`, `yarn.lock`, `bun.lock`, `**/tsconfig*.json`, `eslint.config.*`, `prettier.config.*`, `.prettierrc*`, `biome.json`, `biome.jsonc`, `vitest.config.*`, `.nvmrc`, `.node-version`, `.npmrc`. - [PHP](https://jabbott.dev/Doctrina/rules/php.md): How to write PHP as a senior engineer, covering what each version from 8.0 to 8.6 adds, strict types and type design, traps such as loose comparison and array keys that change type, exceptions and the built-in functions that return `false`, files, processes, and timeouts, logging through PSR-3 (the PHP Standards Recommendation for loggers), time and money, text for users and its translations, and untrusted input, from escaping in templates and SQL parameters to `unserialize`, uploads, and sessions. It also covers state that outlives a request in worker runtimes, database migrations, extensions and the foreign function interface (FFI), public APIs and named arguments, docblocks, READMEs and Composer metadata for Packagist, PHPUnit tests, static analysis and its baseline, and Composer dependencies. It relies on `writing.md` for docblocks and error messages, so adopt both. The HTML that templates write also follows `web-front-end.md`. Loads for files that match `**/*.php`, `**/*.phtml`, `**/*.twig`, `**/composer.json`, `**/composer.lock`, `phpunit.xml`, `phpunit.xml.dist`, `phpstan.neon`, `phpstan.neon.dist`, `phpstan-baseline.neon`, `psalm.xml`, `psalm.xml.dist`, `.php-cs-fixer.php`, `.php-cs-fixer.dist.php`, `phpcs.xml`, `phpcs.xml.dist`, `.phpcs.xml`, `.phpcs.xml.dist`, `rector.php`, `infection.json5`, `**/php.ini`, `.php-version`. - [Go](https://jabbott.dev/Doctrina/rules/go.md): How to write Go as a senior engineer, covering what each release from 1.18 to 1.27 adds and how the `go` line in `go.mod` changes the language, package and type design, traps such as typed nil errors, shared slice arrays, and silent integer wraparound, errors and wrapping, contexts and timeouts, goroutines with owners, channels, and the race detector, files, processes, and HTTP, `log/slog`, time and money, text for users and its translations, and untrusted input. It also covers cgo and `unsafe`, profiling, public APIs and module versions, doc comments, examples, and READMEs for pkg.go.dev, table-driven and fuzz tests, lints and their suppressions, modules and `govulncheck`, and release builds. It relies on `writing.md` for doc comments and error messages, so adopt both. Loads for files that match `**/*.go`, `**/go.mod`, `**/go.sum`, `go.work`, `go.work.sum`, `.golangci.yml`, `.golangci.yaml`, `.golangci.toml`, `.golangci.json`, `**/staticcheck.conf`, `.goreleaser.yml`, `.goreleaser.yaml`, `**/testdata/fuzz/**`. - [C#](https://jabbott.dev/Doctrina/rules/csharp.md): How to write C# on .NET as a senior engineer, covering what each C# version from 8 to 15 adds and which .NET releases are supported, nullable reference types and type design, traps such as LINQ's deferred execution and record equality with collections, exceptions, `async` code and cancellation, locks and dependency injection lifetimes, disposal and `HttpClient`, logging with message templates, time and money, culture and text for users, and untrusted input. It also covers P/Invoke, `unsafe` code, and Native AOT, performance, public APIs and binary compatibility, XML doc comments, READMEs and metadata for NuGet packages, tests, analyzers and their suppressions, and central package management, lock files, and NuGet's audit. It relies on `writing.md` for doc comments and error messages, so adopt both. The HTML that Razor and Blazor write also follows `web-front-end.md`. Loads for files that match `**/*.cs`, `**/*.csproj`, `**/*.props`, `**/*.targets`, `**/*.sln`, `**/*.slnx`, `**/*.razor`, `**/*.cshtml`, `**/*.resx`, `**/packages.lock.json`, `**/.editorconfig`, `**/.globalconfig`, `global.json`, `nuget.config`, `NuGet.Config`. - [Ruby](https://jabbott.dev/Doctrina/rules/ruby.md): How to write Ruby as a senior engineer, covering what each version from 2.7 to 4.0 adds and which are maintained, bundled gems, object design and `Data`, traps such as shared default objects, truthiness, and frozen strings, exceptions and `rescue`, files and commands without a shell, logging, time and money, text for users and its translations through the i18n gem, and untrusted input, from Active Record placeholders and ERB escaping to `Marshal`, YAML, and regular expressions anchored with `\A` and `\z`. It also covers threads, forked processes, and background jobs, migrations, native extensions, YJIT, public APIs and deprecations, YARD docs, gem READMEs and gemspec metadata, tests, RuboCop and its suppressions, and Bundler's lock file, checksums, and audit. It relies on `writing.md` for doc comments and error messages, so adopt both. The HTML that templates write also follows `web-front-end.md`. Loads for files that match `**/*.rb`, `**/*.rake`, `**/*.gemspec`, `**/*.erb`, `**/*.rbs`, `**/*.rbi`, `**/Gemfile`, `**/Gemfile.lock`, `**/Rakefile`, `**/config.ru`, `.ruby-version`, `.rubocop.yml`, `.rubocop_todo.yml`, `.standard.yml`, `.rspec`, `.yardopts`, `bin/*`. - [Perl](https://jabbott.dev/Doctrina/rules/perl.md): How to write Perl 5 as a senior engineer, covering what each version from 5.10 to 5.44 adds, `use v5.xx` and its feature bundles, experimental features, packages and object systems, traps such as context, string and number comparisons, `split`, and autovivification, exceptions with `try`/`catch` and `croak`, three-argument `open` and commands without a shell, logging, time and money, character encodings, text for users and its translations through gettext, and untrusted input, from DBI placeholders and template escaping to string `eval`, Storable, and patterns anchored with `\A` and `\z`. It also covers preforking workers and forked processes, migrations, XS modules (C code that perl loads) and the foreign function interface (FFI), public APIs and `$VERSION`, Plain Old Documentation (POD), distribution READMEs and metadata, tests with Test2, Perl::Critic and its suppressions, and dependencies locked with Carton and checked with CPAN::Audit. It relies on `writing.md` for POD and error messages, so adopt both. The HTML that templates write also follows `web-front-end.md`. Loads for files that match `**/*.pl`, `**/*.pm`, `**/*.t`, `**/*.pod`, `**/*.psgi`, `**/*.xs`, `**/*.ep`, `**/*.tt`, `**/cpanfile`, `**/cpanfile.snapshot`, `**/Makefile.PL`, `**/Build.PL`, `**/dist.ini`, `**/MANIFEST.SKIP`, `.perlcriticrc`, `.perltidyrc`, `.proverc`, `.perl-version`, `bin/*`, `script/*`. - [Roadmap and documentation](https://jabbott.dev/Doctrina/rules/roadmap-and-docs.md): How to plan and document a project in the style of Nadir's `docs/` folder, covering the numbered core documents, a roadmap of milestones and checkable tasks with a backlog of triggers, append-only decision records, specs for each part of the system, a feature list tied to the roadmap, and where status is reported. It includes a template for each document, and relies on `writing.md` for the text, so adopt both. Loads for files that match `docs/**`, `AGENTS.md`, `CONTRIBUTING.md`, `README.md`, `diagrams/**`, `diagram/**`. - [Teaching materials](https://jabbott.dev/Doctrina/rules/teaching-materials.md): How to write courses, workbooks, and formal articles that educate readers, as a university professor. It covers when to use Markdown, Jupyter notebooks, or LaTeX; objectives-first course design; exercises, answer keys, and rubrics; each format's practices; accessible PDFs; citations; and integrity and student privacy. It relies on `writing.md`, so adopt both. Loads for files that match `**/*.ipynb`, `**/*.tex`, `**/*.bib`, `**/*.sty`, `**/*.cls`, `**/_toc.yml`, `**/myst.yml`, `**/_quarto.yml`, `courses/**`, `workbooks/**`, `articles/**`. ## Skills - [Build the roadmap and the documents](https://jabbott.dev/Doctrina/skills/build-roadmap-and-docs/SKILL.md): Start it with `/build-roadmap-and-docs [description or piece]`. Builds the documents that `roadmap-and-docs.md` describes, from a description of the project, its code, or both: the numbered core documents, decision records, a spec for each part, a roadmap of milestones and checkable tasks with a backlog, the feature list, and the agent guide, update map, and status lines that point to them. It surveys the code and runs its checks first, so nothing is called built that isn't. It proposes the goals, milestones, and decisions for you to approve, drafts every decision as `Proposed` until you accept it, and records existing code as a first milestone whose tasks are ticked only when their tests pass. It ends with a check that every cited task and decision record exists and that dependencies run in order. Given one piece, such as `roadmap`, it builds only that piece and what it needs. It relies on `roadmap-and-docs.md`, `commits.md`, and `writing.md`, and uses `dependencies.md` and `testing.md` where they are adopted. - [Add tasks to the roadmap](https://jabbott.dev/Doctrina/skills/add-roadmap-tasks/SKILL.md): Start it with `/add-roadmap-tasks [work]`. Extends `/build-roadmap-and-docs` to work that comes up once the roadmap exists: a feature, a bug, an issue, or a backlog item whose trigger has happened. It first checks whether a task, the backlog, or the code already covers the work, and whether a non-goal or a decision rules it out. It places each new task in the first open milestone whose goal the work serves, with the next ID that milestone has never used, and writes it in the roadmap's shape, with its dependencies, acceptance criteria, and exact checks. In the same change, it updates the documents the work touches: planned spec sections, decision records drafted as `Proposed`, the feature list, the milestone's gate, the agent guide, and the status counts. It proposes every change before it writes, and never ticks a task or rewrites a finished one. With `backlog:`, it adds a backlog item with its trigger instead, and given nothing, it finds work the documents promise that no task covers. It relies on `roadmap-and-docs.md`, `commits.md`, and `writing.md`, and runs the roadmap check from `build-roadmap-and-docs`, so adopt that skill too. - [Work the next roadmap task](https://jabbott.dev/Doctrina/skills/next-task/SKILL.md): Start it with `/next-task [task-id]`. Works through the roadmap one task at a time. It picks the next unblocked task (or the one named), asks the questions and checks the decisions the task depends on, makes the smallest complete change, runs the task's checks, ticks the box only when they pass, updates the documents, and reports what ran and what didn't. It relies on `roadmap-and-docs.md`, `commits.md`, and `writing.md`, so adopt those first. - [Correct documentation drift](https://jabbott.dev/Doctrina/skills/fix-doc-drift/SKILL.md): Start it with `/fix-doc-drift [scope]`. Finds statements in the documentation that no longer match the code, the tools, or the project's records, and corrects them. The scope is a path, an area, a Git range, or, when empty, every document. It decides which side is wrong before it edits, asks wherever a spec or decision may be right and the code wrong, leaves the records of the past alone, and suggests checks that would catch the same drift next time. It relies on `writing.md` and `commits.md`, and uses `roadmap-and-docs.md` where it is adopted. - [Draw or rebuild the architecture diagrams](https://jabbott.dev/Doctrina/skills/draw-diagrams/SKILL.md): Start it with `/draw-diagrams [file or view]`. Draws formal architecture diagrams of the project as Mermaid in Markdown, in `diagram/` or the folder `roadmap-and-docs.md` names: C4 views, UML class, component, and sequence diagrams, data-flow, state, data-model, and deployment diagrams. Built parts are solid and planned ones dashed with their task, and every file records the commit it was drawn from, so later runs rebuild only the diagrams whose sources changed. It relies on `roadmap-and-docs.md`, `commits.md`, and `writing.md`. - [Cluster the roadmap into phase gates, or check a gate](https://jabbott.dev/Doctrina/skills/phase-gates/SKILL.md): Start it with `/phase-gates [plan | phase ID]`. Clusters the roadmap's tasks into phases by dependency, risk, and deliverable, and gives each phase a gate of checkable criteria: integration, budgets, the full check, open work, decisions, documents, and risks. Given a phase, it evaluates that gate with evidence gathered in this session and records the result, and you confirm a pass. Empty, it shows every gate's state. It relies on `roadmap-and-docs.md`, `commits.md`, and `writing.md`. - [Sweep the code for bugs and dead code](https://jabbott.dev/Doctrina/skills/sweep-code/SKILL.md): Start it with `/sweep-code [scope]`. Scans the code for bugs and dead code: the bugs tools miss, from dropped errors to races, and unreachable code, unused declarations, files, and dependencies, and suppressions that hide nothing. It proves each finding with a failing test, a traced path, or a check of every way the code could be reached, and shows them all before it changes anything. It fixes only what you approve, one change at a time, with a regression test for each bug. It relies on `commits.md`, `writing.md`, and the language rules, and uses `roadmap-and-docs.md` and `pair-programming.md` where they are adopted. - [Find and patch security vulnerabilities](https://jabbott.dev/Doctrina/skills/security-sweep/SKILL.md): Start it with `/security-sweep [scope]`. Finds and patches security vulnerabilities. It starts from a threat model of what an attacker would want and where data comes in, then checks the Git history for secrets, the dependencies for known vulnerabilities and supply-chain risks, the code against a checklist of weaknesses numbered as in the Common Weakness Enumeration (CWE), and the continuous integration (CI) workflows for script injection and unpinned actions. It proves each finding with a local test, never against a deployed system, never uses a secret it finds, and keeps findings private until you decide how to disclose them. It patches only what you approve, each with a regression test. It relies on `commits.md`, `writing.md`, and the language rules, and uses `roadmap-and-docs.md` and `pair-programming.md` where they are adopted. - [Simplify long or convoluted code](https://jabbott.dev/Doctrina/skills/simplify-code/SKILL.md): Start it with `/simplify-code [scope]`. Finds code that is longer or more convoluted than its job requires, such as deep nesting, long functions, copied code, and layers that only forward calls. It simplifies the parts you approve without giving up any functionality: every input, output, error, side effect, edge case, option, supported platform, and performance budget stays as it was. It first checks why code is long, because much length is functionality, pins the current behavior with tests, and then makes one simplification at a time. It relies on `commits.md`, `writing.md`, and the language rules, and uses `roadmap-and-docs.md` and `pair-programming.md` where they are adopted. - [Build a course](https://jabbott.dev/Doctrina/skills/build-course/SKILL.md): Start it with `/build-course `. Builds a whole course from a description such as "numerical methods for second-year engineers, 12 weeks". It proposes a plan for you to approve, with the learning objectives, modules, assessments and their weights, policies, and a table that ties each objective to where it is taught and tested. Then it builds the syllabus, a Markdown reading and practice for each module, interactive Jupyter labs, LaTeX problem sets and exams whose answer keys come from the same source, graded notebooks through nbgrader, and a Jupyter Book website that leaves the keys out. It runs every notebook, compiles every document, and checks the website for leaked answers. Given an existing course's code, it continues from the plan's checklist. It relies on `teaching-materials.md`, `commits.md`, and `writing.md`. - [Build language packs](https://jabbott.dev/Doctrina/skills/build-language-packs/SKILL.md): Start it with `/build-language-packs [languages] [scope]`. Translates an app's user-facing text into Mandarin Chinese, Hindi, Spanish, Standard Arabic, French, Bengali, Portuguese, Indonesian, and Urdu, as one language pack each, in the app's own localization format. It first fixes source strings that can't be translated well, such as sentences built from pieces, and asks you to choose each language's variant and form of address. It writes every plural form each language needs, keeps placeholders and markup intact, lays out Arabic and Urdu right to left, and checks the keys, placeholders, plural forms, scripts, lengths, and fonts. Every translation stays a draft: each language gets a sheet with its glossary and a review list for a fluent reviewer. A later run translates only the strings that changed. It relies on `writing.md`, `commits.md`, and the platform rules, and uses `roadmap-and-docs.md` where it is adopted. - [Set up a repository on GitHub](https://jabbott.dev/Doctrina/skills/set-up-github/SKILL.md): Start it with `/set-up-github [pieces]`. Writes the files GitHub reads, fitted to the project: a CodeQL code-scanning workflow with every action pinned to a commit, a Dependabot configuration for each package manager it finds, `SECURITY.md`, `CONTRIBUTING.md`, issue forms, a pull request template, and `CODEOWNERS`. It also writes a `.gitignore` from the adopted language rules, which keeps build output and secrets out and lock files and the Gradle wrapper in. It takes code owners, security contacts, and promises only from you, merges into existing files instead of replacing them, and lists the repository settings that only an administrator can change rather than changing them. It relies on `commits.md`, `writing.md`, and the language rules, and uses `roadmap-and-docs.md` and `teaching-materials.md` where they are adopted. - [Apply the Apache License 2.0](https://jabbott.dev/Doctrina/skills/apply-apache-license/SKILL.md): Start it with `/apply-apache-license [pieces] [check]`. Puts a project under the Apache License 2.0 and keeps it there. It copies the license's text, fetched from apache.org and checked against its hash, into the root and into every crate, module, and package that is built or published on its own, and sets each manifest's license field. It adds the license's header, with the copyright holder you name, to every source file the project wrote, in each language's comment syntax and below the lines that must come first, and leaves third-party and generated code alone. It keeps a `NOTICE` of the third-party software each release contains, and, if you choose, the software it only downloads, builds, or tests with, giving each one's version, license, and copyright, and it copies their license files. It flags licenses for you to decide on, such as copyleft ones, rather than give legal advice, and can follow the REUSE specification so a tool checks every file. With `check`, it only reports what is missing or out of date. It relies on `commits.md` and `writing.md`, and uses `dependencies.md`, the language rules, `teaching-materials.md`, and `roadmap-and-docs.md` where they are adopted. ## LUA101: Lua 5.4 Full Course - [LUA101: Lua 5.4 Full Course](https://jabbott.dev/Doctrina/lua101/): A self-paced course that takes programmers from their first Lua 5.4 program to embedding Lua in C. It has 14 modules and 14 labs. - [Setting up your environment](https://jabbott.dev/Doctrina/lua101/setup/): Set up the tools LUA101 needs: a Python environment that runs the lab notebooks, and a standalone Lua 5.4 interpreter with LuaRocks for scripts and projects. - [Notation and conventions](https://jabbott.dev/Doctrina/lua101/notation/): The conventions that LUA101's readings, labs, and exams share: code font for Lua code, names, and values, and the math symbols the course uses, such as O(n). - [Module 1: First steps](https://jabbott.dev/Doctrina/lua101/modules/first-steps/): Run Lua 5.4 three ways, read its error messages, and learn nil, booleans, numbers, strings, and local variables, and why only nil and false count as false. - [Module 2: Control flow and functions](https://jabbott.dev/Doctrina/lua101/modules/control-flow-and-functions/): Conditions, four kinds of loop, and functions in Lua: multiple results and how calls adjust them, varargs, recursion, proper tail calls, and named options. - [Module 3: Tables](https://jabbott.dev/Doctrina/lua101/modules/tables/): Lua's one data structure, the table: sequences, records, sorting, why # misleads on tables with holes, references and copies, and four classic data structures. - [Module 4: Strings and patterns](https://jabbott.dev/Doctrina/lua101/modules/strings-and-patterns/): Lua's string library: positions, string.format, patterns and captures, gsub, how patterns differ from regular expressions, building strings, and UTF-8 text. - [Module 5: Closures and iterators](https://jabbott.dev/Doctrina/lua101/modules/closures-and-iterators/): Closures in Lua: functions that keep their creator's locals, private counters and caches, higher-order functions, memoization, and iterators for the for loop. - [Module 6: Errors, modules, and tests](https://jabbott.dev/Doctrina/lua101/modules/errors-modules-and-tests/): How a Lua function reports failure, with error or with nil and a message, and how callers catch it; modules and how require finds them; and testing with busted. - [Module 7: Metatables](https://jabbott.dev/Doctrina/lua101/modules/metatables/): Metatables in Lua: operators and tostring for your own types, defaults and proxies with __index and __newindex, read-only tables, and weak tables for caches. - [Self-test 1: Modules 1–7](https://jabbott.dev/Doctrina/lua101/self-tests/self-test-1/): An ungraded, 75-minute self-test of 14 questions on LUA101 Modules 1–7 that mixes topics, so you practice choosing a method. Answers follow each question. - [Module 8: Objects and classes](https://jabbott.dev/Doctrina/lua101/modules/objects-and-classes/): Objects in Lua without a class keyword: methods and the colon, classes through __index, inheritance, composition, private state in closures, and their costs. - [Module 9: Coroutines](https://jabbott.dev/Doctrina/lua101/modules/coroutines/): Lua's coroutines: resume, yield, status, and errors, coroutine.wrap, generators, pipelines, and a cooperative scheduler, and a task that never yields. - [Module 10: Files, the operating system, and data](https://jabbott.dev/Doctrina/lua101/modules/files-os-and-data/): Files, the clock, the environment, and other programs from Lua: closing files on every path, keeping input away from the shell, and reading data formats. - [Module 11: Packages and tooling](https://jabbott.dev/Doctrina/lua101/modules/packages-and-tooling/): The Lua community's tools: rockspecs and project trees with LuaRocks, lint with luacheck, formatting with StyLua, types with LuaCATS, and coverage with LuaCov. - [Module 12: Performance and memory](https://jabbott.dev/Doctrina/lua101/modules/performance-and-memory/): Find what makes Lua code slow: time code and count memory reliably, learn how tables and strings are stored, and speed up a hot path by measuring each change. - [Module 13: Lua and C](https://jabbott.dev/Doctrina/lua101/modules/lua-and-c/): Lua's C API in both directions: C functions and modules that Lua calls, a C program that embeds Lua and runs its scripts, the stack, and full userdata. - [Module 14: Versions, sandboxes, and hosts](https://jabbott.dev/Doctrina/lua101/modules/versions-sandboxes-and-hosts/): Lua beyond the standalone interpreter: Lua 5.1, LuaJIT, and Lua 5.5, detecting features, sandboxing untrusted code and its limits, and writing code for a host. - [Self-test 2: All Modules](https://jabbott.dev/Doctrina/lua101/self-tests/self-test-2/): An ungraded self-test on all of LUA101, weighted toward Modules 8–14, that mixes question types so you practice choosing a method. Answers follow each question. - [PA1: Numbers and functions](https://jabbott.dev/Doctrina/lua101/assignments/pa1/pa1/): Seven Lua problems for after Module 2, checked by test cells: exact division, Collatz sequences, varargs, digit sums, repeated calls, and prices with options. - [PA2: Tables and text](https://jabbott.dev/Doctrina/lua101/assignments/pa2/pa2/): Six Lua problems for after Module 4, with test cells: word counts, a set type, run-length encoding, reversing UTF-8, merging settings, and lists with holes. - [PA3: An iterator library](https://jabbott.dev/Doctrina/lua101/assignments/pa3/readme/): Write iter, a Lua module of lazy iterators that combine into pipelines, and the busted tests that show it works: LUA101's first project outside a notebook. - [PA4: A discrete-event simulation](https://jabbott.dev/Doctrina/lua101/assignments/pa4/readme/): Simulate a bank in Lua with coroutine tasks on a simulated clock, so every run gives the same result, with servers of two speeds, a report, and busted tests. - [PA5: A command-line tool](https://jabbott.dev/Doctrina/lua101/assignments/pa5/readme/): Build csvstats, a LuaRocks package whose command prints statistics for each column of a comma-separated file, with lint, formatting, types, and tests. - [Capstone project: a Lua package for your portfolio](https://jabbott.dev/Doctrina/lua101/assignments/final-project/readme/): Design, build, and release version 1.0.0 of your own Lua package for a portfolio, with tests, documentation, and continuous integration, from proposal on. - [Errata](https://jabbott.dev/Doctrina/lua101/errata/): Corrections to published LUA101 material, newest first, grouped by edition, with the date, the file, and what changed in each one. ## PE101: Prompt Engineering from First Prompt to Coding Agents - [PE101: Prompt Engineering from First Prompt to Coding Agents](https://jabbott.dev/Doctrina/pe101/): A free, self-paced course that takes programmers from their first prompt to configuring coding agents, with no model calls. It has 13 modules and 13 labs. - [Setting up your environment](https://jabbott.dev/Doctrina/pe101/setup/): Set up PE101's one requirement, a Python environment for the labs. No part of the course calls a model, so you need no account, API key, or network after setup. - [Python for the labs](https://jabbott.dev/Doctrina/pe101/python-primer/): The Python 3.12 that PE101's labs use, by example, for programmers who know another language: lists, dictionaries, functions, regular expressions, and JSON. - [Notation and conventions](https://jabbott.dev/Doctrina/pe101/notation/): The conventions that PE101's readings, labs, and self-tests share: how prompts, requests, and responses appear, money and token units, and its symbols. - [Prompt rubric](https://jabbott.dev/Doctrina/pe101/prompt-rubric/): PE101's rubric for scoring a prompt out of 10 on five criteria, for a first draft, a revision, or a coding-agent task, with the evidence each score needs. - [Module 1: How language models produce text](https://jabbott.dev/Doctrina/pe101/modules/how-models-produce-text/): How a language model turns a prompt into text: tokens, next-token probabilities, temperature and top-p sampling, why answers vary, and the context window. - [Module 2: The anatomy of a request](https://jabbott.dev/Doctrina/pe101/modules/anatomy-of-a-request/): The parts of a Claude Messages API request and response: requests as JSON, token costs, fitting the context window, conversations, and why a response stopped. - [Module 3: Clear instructions](https://jabbott.dev/Doctrina/pe101/modules/clear-instructions/): Write clear prompts: state everything the task needs, give the reason behind each rule, split the system prompt from the user turn, and specify the format. - [Module 4: Structure, data, and templates](https://jabbott.dev/Doctrina/pe101/modules/structure-data-and-templates/): Structure prompts with XML tags, put documents before instructions, escape data at the boundary, fill each template field once, and version prompt files. - [Self-test 1: Foundations](https://jabbott.dev/Doctrina/pe101/self-tests/self-test-1/): An ungraded self-test on PE101 Modules 1–4 that takes about two hours, with answers that say what earns each point and a guide to deciding what to review. - [Module 5: Examples](https://jabbott.dev/Doctrina/pe101/modules/examples/): Teach a model with examples: few-shot prompts, contrast pairs that mark a boundary, auditing examples for skew and shortcuts, and choosing them per input. - [Module 6: Reasoning and chains](https://jabbott.dev/Doctrina/pe101/modules/reasoning-and-chains/): Give a model room to reason and keep the result checkable: thinking and effort levels, tagged explanations, chains of requests, and how errors compound. - [Module 7: Evaluating prompts](https://jabbott.dev/Doctrina/pe101/modules/evaluating-prompts/): Evaluate prompts: define success, build test sets, grade with code first, check a model grader against people, trust pass rates, and compare two prompts. - [Module 8: Structured output and tools](https://jabbott.dev/Doctrina/pe101/modules/structured-output-and-tools/): Turn model answers into data: JSON Schemas and three layers of checks, structured outputs and retries, tool definitions, the tool-use loop, and failing tools. - [Self-test 2: Techniques and measurement](https://jabbott.dev/Doctrina/pe101/self-tests/self-test-2/): An ungraded self-test on PE101 Modules 1–8, techniques and measurement, that takes about two hours, with answers that say what earns each point. - [Module 9: Workflows and agents](https://jabbott.dev/Doctrina/pe101/modules/workflows-and-agents/): Who decides the next step, your code or the model: four workflow patterns, agents with limits on turns and cost, reading an agent's log, and choosing a design. - [Module 10: Documents, retrieval, and context](https://jabbott.dev/Doctrina/pe101/modules/documents-retrieval-and-context/): Answer from documents: put them first, ground answers in quotations that code checks, retrieve sections with BM25, measure recall, and cache the stable prefix. - [Module 11: Prompt injection](https://jabbott.dev/Doctrina/pe101/modules/prompt-injection/): Prompt injection, when text that arrived as data is followed as an instruction, and three defenses: least privilege, marked untrusted text, and human approval. - [Module 12: Prompting a coding agent](https://jabbott.dev/Doctrina/pe101/modules/prompting-a-coding-agent/): Direct a coding agent such as Claude Code: where each decision's context comes from, tasks it can check, a check for it to run, and reviewing its diff. - [Module 13: Configuring a coding agent](https://jabbott.dev/Doctrina/pe101/modules/configuring-a-coding-agent/): Configure Claude Code for a repository: CLAUDE.md instructions, rules scoped to paths, skills, subagents, permission rules, hooks, and what each can enforce. - [Self-test 3: Systems and agents](https://jabbott.dev/Doctrina/pe101/self-tests/self-test-3/): An ungraded self-test on all of PE101, weighted toward the systems and agents of Modules 9–13, that takes about two hours, with answers for each point. - [PA1: Requests and costs](https://jabbott.dev/Doctrina/pe101/assignments/pa1/pa1/): Build the plumbing of a bicycle shop's assistant in Python: requests, cost reports, budgets, a history within limits, and replies for every stop reason. - [PA2: A prompt library](https://jabbott.dev/Doctrina/pe101/assignments/pa2/pa2/): Write and score a versioned library of a bicycle shop's prompts: routing, receipt replies, and profile-change extraction, rendered from templates and diffed. - [PA3: An evaluated classifier](https://jabbott.dev/Doctrina/pe101/assignments/pa3/pa3/): Build and audit a small evaluation of a ticket classifier: a contrast set, parsing and grading, paired cases, agreement between graders, and intervals. - [PA4: A tool-using assistant](https://jabbott.dev/Doctrina/pe101/assignments/pa4/pa4/): Build a read-only assistant for a fictional shop: validate and retry, use three tools, route by result, apply turn and cost limits, and choose a design. - [PA5: Answers from documents, defended](https://jabbott.dev/Doctrina/pe101/assignments/pa5/pa5/): Build an offline handbook assistant: rank sections, report coverage, ground a prompt in sources, check exact evidence, price cached input, and test defenses. - [Capstone: An evaluated prompt package](https://jabbott.dev/Doctrina/pe101/assignments/final-project/readme/): Build a reusable, evaluated prompt package for a task worth checking, such as routing tickets or answering handbook questions, from proposal to final version. - [Errata](https://jabbott.dev/Doctrina/pe101/errata/): Corrections to published PE101 material, newest first, grouped by edition, with the date, the file, and what changed in each one. ## PY101: Python from First Program to Portfolio - [PY101: Python from First Program to Portfolio](https://jabbott.dev/Doctrina/py101/): A free, self-paced course that takes complete beginners from their first line of Python to intermediate programs and three portfolio projects. It has 18 modules and 18 labs. - [Setting up your computer](https://jabbott.dev/Doctrina/py101/setup/): Install Python, VS Code, and JupyterLab on Windows, macOS, or Linux, step by step, and run your first PY101 lab. No programming experience needed. - [Notation and conventions](https://jabbott.dev/Doctrina/py101/notation/): The conventions PY101's readings, labs, and self-tests share: code font, interpreter prompts, output blocks, exercise numbers, and the one math symbol, O(n). - [Module 1: First programs](https://jabbott.dev/Doctrina/py101/modules/first-programs/): Write and run your first Python programs three ways, print text and arithmetic, add comments, and read the error messages Python gives when code goes wrong. - [Module 2: Values, variables, and expressions](https://jabbott.dev/Doctrina/py101/modules/values-variables-and-expressions/): Learn Python's basic types, the operators //, %, and **, variables and tracing, reading and converting input, f-strings, and why floats are approximate. - [Module 3: Decisions](https://jabbott.dev/Doctrina/py101/modules/decisions/): Compare values, combine conditions with and, or, and not, choose among cases with if, elif, and else, and test every branch of a decision with assert. - [Module 4: Loops](https://jabbott.dev/Doctrina/py101/modules/loops/): Repeat code with while and for loops and range, use the accumulator, counter, search, and validation patterns, and trace loops in a table. - [Module 5: Functions](https://jabbott.dev/Doctrina/py101/modules/functions/): Define functions that return values, tell returning from printing, predict local and global names, use keyword and default arguments, and test with assert. - [Module 6: Strings and text](https://jabbott.dev/Doctrina/py101/modules/strings-and-text/): Index and slice strings, search and change text with string methods, process text by character and by word, and convert between characters and code points. - [Module 7: Lists and tuples](https://jabbott.dev/Doctrina/py101/modules/lists-and-tuples/): Build and change lists, predict aliasing between names and copies, write list comprehensions, and use tuples, enumerate, zip, and sorting with a key. - [Module 8: Dictionaries and sets](https://jabbott.dev/Doctrina/py101/modules/dictionaries-and-sets/): Look up, count, and group values with dictionaries, read nested data, use sets, and choose a data structure by measuring its cost with timeit. - [Self-test 1: Modules 1–8](https://jabbott.dev/Doctrina/py101/self-tests/self-test-1/): An ungraded, 90-minute self-test of 16 questions on PY101 Modules 1–8 that mixes topics, so you practice choosing a method. Answers follow each question. - [Module 9: Scripts, modules, and the command line](https://jabbott.dev/Doctrina/py101/modules/scripts-modules-and-the-command-line/): Use the terminal, run scripts with arguments, split a program into modules, build command-line tools with argparse, and use virtual environments. - [Module 10: Version control with Git and GitHub](https://jabbott.dev/Doctrina/py101/modules/version-control-with-git-and-github/): Record a project's history with Git, write clear commit messages, ignore generated files, publish on GitHub with a README, undo mistakes, and use branches. - [Module 11: Files and data formats](https://jabbott.dev/Doctrina/py101/modules/files-and-data-formats/): Read and write text, CSV, and JSON files with pathlib, csv, and json, name each file's encoding, and walk nested data and folders with recursive functions. - [Module 12: Errors, exceptions, and debugging](https://jabbott.dev/Doctrina/py101/modules/errors-exceptions-and-debugging/): Read a traceback, handle the errors a program can recover from, raise errors with clear messages, and find bugs with a method, printed values, and a debugger. - [Module 13: Testing with pytest](https://jabbott.dev/Doctrina/py101/modules/testing-with-pytest/): Write pytest tests for typical cases, edge cases, and errors, use parametrize and fixtures, test first, and run the tests on every push with GitHub Actions. - [Self-test 2: Modules 1–13](https://jabbott.dev/Doctrina/py101/self-tests/self-test-2/): An ungraded, two-hour self-test of 18 questions on PY101 Modules 1–13, weighted toward Modules 9–13. Answers and scoring notes follow each question. - [Module 14: Classes and objects](https://jabbott.dev/Doctrina/py101/modules/classes-and-objects/): Define classes with attributes and methods, protect an invariant with checks, write __repr__ and __eq__ or a dataclass, and add type hints. - [Module 15: Inheritance, composition, and special methods](https://jabbott.dev/Doctrina/py101/modules/inheritance-composition-and-special-methods/): Write subclasses with super(), choose between inheritance and composition, and give classes operators, comparison, length, and iteration. - [Module 16: Generators, decorators, and context managers](https://jabbott.dev/Doctrina/py101/modules/generators-decorators-and-context-managers/): Write generators that use little memory, build pipelines with itertools, write closures and decorators, and manage resources with context managers. - [Module 17: Databases and web APIs](https://jabbott.dev/Doctrina/py101/modules/databases-and-web-apis/): Store and query data in SQLite with placeholders, request JSON from a web API with urllib, and test that code without the network. - [Module 18: Packaging and quality tools](https://jabbott.dev/Doctrina/py101/modules/packaging-and-quality-tools/): Turn a project into an installable package with its own command, check it with Ruff and mypy, and release a version with a changelog, a license, a tag, and CI. - [Self-test 3: All modules](https://jabbott.dev/Doctrina/py101/self-tests/self-test-3/): An ungraded, two-hour self-test of 20 questions on all of PY101, weighted toward Modules 14–18. Answers and scoring notes follow each question. - [PA1: Numbers, decisions, and functions](https://jabbott.dev/Doctrina/py101/assignments/pa1/pa1/): Format a temperature table, price parcels and test every boundary, count with digit sums, parse prices from text, and split a savings plan into functions. - [PA2: Text and collections](https://jabbott.dev/Doctrina/py101/assignments/pa2/pa2/): Count words with ties broken alphabetically, group anagrams, encode runs of letters, scale a recipe, merge stock, and choose a data structure by timing it. - [Project 1: A terminal game](https://jabbott.dev/Doctrina/py101/assignments/project1/project1/): PY101 Project 1: build a terminal game in Python with options, checks, and input that can't crash it, and publish it on GitHub with a README and a license. - [Project 2: A command-line data tool](https://jabbott.dev/Doctrina/py101/assignments/project2/project2/): PY101 Project 2: build a command-line tool that summarizes weather data from a CSV file, test it with pytest, run the tests on GitHub, and publish it. - [PA3: Objects and iterators](https://jabbott.dev/Doctrina/py101/assignments/pa3/pa3/): Build a bike-share model with a class that keeps an invariant, a dataclass, a subclass, operators, a generator pipeline, a decorator, and a context manager. - [Capstone project: A package of your own](https://jabbott.dev/Doctrina/py101/assignments/capstone/capstone/): PY101's capstone project: design, build, test, and release a Python package of your own, with classes, stored data, and checks on every push. - [Errata](https://jabbott.dev/Doctrina/py101/errata/): Corrections to published PY101 material, newest first, grouped by edition, with the date, the file, and what changed in each one. ## Optional - [Sitemap](https://jabbott.dev/Doctrina/sitemap.xml): every page on the site - [Source on GitHub](https://github.com/jabbott-iii/Doctrina): the rules, skills, courses, and this site's generator - [jabbott.dev](https://jabbott.dev/llms.txt): the author's site