Команды конвейера
Справочник команд конвейера Apothem — поток /plan и каталог команд аудита.
Apothem поставляет учитывающий архитектуру конвейер /plan, тринадцатиэтапный
конвейер /research, а также последовательность аудита из одиннадцати команд —
это даёт каждому проекту структурированный путь от сырой прозы к коду
продакшен-уровня, проверенному по множеству осей, и от сырой идеи к
распространённой статье, прошедшей рецензирование.
Обзор конвейера
flowchart LR
accTitle: Plan pipeline command flow
accDescr: Left-to-right flowchart of the apothem plan pipeline from the spec stage through the generate and review stages, then through a conditional architecture-bearing decision that either runs the design stage or skips directly to the execute stage. The orthogonal audit stage wraps the spec-through-review span as a closed remediation loop, and the re-entrant amend stage revises an existing suite and returns it to review.
A[/plan-spec] --> B[/plan-generate]
B --> C[/plan-review]
AUD[/plan-audit<br/>orthogonal: wraps spec → review] -.->|closed-loop remediation| A
AM[/plan-amend<br/>re-entrant: revises an existing suite] -.->|re-review| C
C --> Q{Architecture-bearing suite?}
Q -->|yes| F[/plan-design<br/>emit _inputs/design.md]
Q -->|no| D[/plan-execute]
F --> D
D --> E[/plan-status]
D --> G[Audit review sequence]
G --> H[Completion milestone]Этапы планирования
Конвейер поставляется в виде восьми полноценных слэш-команд, по одной на этап;
каждую можно вызвать независимо как /plan-<stage>. Оркестратор
/plan ведёт их от миссии до выполненного набора планов.
| Этап | Роль | Позиция |
|---|---|---|
| /plan-spec | Кузница — от прозы к спецификации | Начальный |
| /plan-generate | Генератор — от спецификации к набору планов | Промежуточный |
| /plan-review | Аудитор — криминалистический аудит плана | Промежуточный |
| /plan-design | Архитектор — _inputs/design.md для наборов планов, затрагивающих архитектуру | Условный шлюз |
| /plan-execute | Исполнитель — выполнение фаз | Конечный |
| /plan-status | Докладчик — статус только для чтения | Только чтение |
| /plan-audit | Страж — обёртка замкнутого цикла вокруг spec → generate → review | Ортогональный (до выполнения) |
| /plan-amend | Распорядитель — повторно входимая правка существующего набора планов | Повторно входимый |
/plan-audit ортогонален линейному потоку и не является этапом внутри него. Он
оборачивает /plan-spec → /plan-generate → /plan-review в единый замкнутый
цикл, запускает только недостающие предшествующие этапы, активно устраняет
находки и оставляет набор планов готовым к /plan-execute. Он отличается от описанной
ниже последовательности аудита, которая проверяет выполненную кодовую базу, а
не набор планов.
/plan-design — не универсальная церемония. /plan-review определяет,
изменяет ли набор планов поверхности, затрагивающие архитектуру. Если да,
/plan-design выпускает трассу проектирования, которую используют
/plan-execute и /architecture-review. Если нет, проверенный набор планов переходит
непосредственно к выполнению.
Исследовательский конвейер
Исследовательский конвейер поставляется в виде тринадцати полноценных
слэш-команд, по одной на этап; каждую можно вызвать независимо как
/research-<stage>, а связывают их Шлюз последовательности и Манифест
передачи, под действием десяти мандатов строгости (авторитетные источники,
воспроизводимость, фальсифицируемость, целостность цитирования,
предрегистрация, этика / конфликты интересов, статистическая строгость,
открытая наука / FAIR, соответствие руководствам по отчётности, теоретическая
обоснованность / влияние).
flowchart LR
accTitle: Research pipeline command flow
accDescr: Left-to-right flowchart of the apothem research pipeline from the ideate stage through spec, theory, sources, synthesis, proposal, study design, experiment, analysis, paper, and peer review to publish and disseminate, with a revision loop from review back to paper.
RI[/research-ideate] --> RS[/research-spec]
RS --> RT[/research-theory]
RT --> RSO[/research-sources]
RSO --> RSY[/research-synthesis]
RSY --> RPR[/research-proposal]
RPR --> RD[/research-design]
RD --> RE[/research-experiment]
RE --> RA[/research-analysis]
RA --> RP[/research-paper]
RP --> RR[/research-review]
RR --> RPU[/research-publish]
RPU --> RDI[/research-disseminate]
RR -.->|revision loop| RP| Этап | Роль | Позиция |
|---|---|---|
| /research-ideate | Сформулировать проблему — вопросы-кандидаты из затравки предметной области | Начальный |
| /research-spec | Сформулировать вопрос — фальсифицируемые гипотезы + границы | Промежуточный |
| /research-theory | Концептуальная рамка + теория изменений | Промежуточный |
| /research-sources | Систематический сбор источников с воспроизводимой записью поиска | Промежуточный |
| /research-synthesis | Карта SOTA + анализ пробелов | Промежуточный |
| /research-proposal | Цели + осуществимость + запасные планы + влияние + план данных + план предрегистрации; матрица конкурса финансирующей организации или ответ на повторную подачу | Промежуточный |
| /research-design | Проектирование исследования + предрегистрация | Промежуточный |
| /research-experiment | Выполнение + запись, воспроизводимо | Промежуточный |
| /research-analysis | Результаты + статистика | Промежуточный |
| /research-paper | Черновик статьи высшего уровня | Промежуточный |
| /research-review | Критика уровня рецензирования | Промежуточный |
| /research-publish | Пакет для площадки + подача | Промежуточный |
| /research-disseminate | Распространение + влияние + архивирование по FAIR | Конечный |
Оркестратор /research в виде обёрнутого рабочего
процесса ведёт эти этапы от сырого вопроса до опубликованной статьи (сам он
этапом не является), независимо проверяя результат каждого этапа, прежде чем
следующий этап начнёт на нём строиться; --quick запускает только
/research-sources + /research-synthesis для однократного отчёта с цитатами.
Эмпирические этапы (источники, проектирование, эксперимент, анализ) и этапы написания (статья, рецензирование, публикация, распространение) дополнительно опираются на поверхности, операционализирующие строгость, — честное сравнение нескольких методов, происхождение базовых методов для сравнения, каркас программы экспериментов, план использования вычислительных ресурсов, включаемый по желанию автономный цикл экспериментов, шлюз продвижения по критериям готовности (definition of done), ослепление с поэтапным раскрытием, запись поиска, планирование распределения в исследовании и мощности, дисциплина анализа, запасные планы, целостность рисунков и планирование докладов и постеров, — которые добавляют операционные детали к десяти мандатам, не расширяя их.
Последовательность аудита
Оркестратор /audit в виде обёрнутого рабочего процесса проходит по всем одиннадцати измерениям ниже за один параллельный проход — аналог /plan и /research для последовательности аудиторских проверок — и синтезирует один дедуплицированный отчёт о находках, отсортированный по серьёзности (только отчёт; устранение передаётся в /elevate). Каждое измерение можно также вызвать отдельно.
Оркестратор /fortress в виде обёрнутого рабочего процесса замыкает цикл, о результатах которого сообщает /audit: он выявляет проблемы через /audit, проверяет каждую находку, устраняет каждую подтвердившуюся находку на поверхности, которой она принадлежит, повторяет аудит в ограниченном цикле и пропускает результат через шлюз /release-readiness — аналог /plan и /research для упрочнения к продакшену.
| Команда | Область качества |
|---|---|
| /code-review | Качество кода |
| /code-audit | Корпус кода |
| /security-audit | OWASP / ASVS |
| /perf-audit | Производительность |
| /architecture-review | Архитектура |
| /ux-review | Опыт разработчика |
| /a11y-audit | Доступность |
| /docs-review | Документация |
| /dependency-audit | Зависимости |
| /supply-chain-audit | Цепочка поставок |
| /threat-model-audit | Модель угроз |
Все команды
Каждая поставляемая команда, сгенерированная из её определения в
src/apothem/commands/. Команды без написанной вручную страницы получают
страницу, сгенерированную из того же определения.
| Command | Summary |
|---|---|
| /plan | Runs the planning pipeline (spec, generate, review, design) with independent verification, confirming at each hand-off; execute stays a manual step the … |
| /plan-spec | Turns free-form prose, notes or rough requirements into a spec-grade _spec/spec.md that keeps the author's wording and settles open questions by inquiry. |
| /plan-generate | Generates a full plan suite (master plan, progress log, decision notes, per-phase files) from a written spec or raw prose. |
| /plan-review | Reads an existing plan suite line by line for fidelity, consistency, completeness and risk, then applies only the revisions the user approves. |
| /plan-design | Writes the architectural design for a reviewed plan suite at _inputs/design.md: components, interfaces, decisions and diagrams. |
| /plan-execute | Use to implement one phase of a reviewed plan suite: reads the phase file and progress notes, verifies prerequisites and review scorecards, implements each … |
| /plan-amend | Changes an existing plan suite without losing resolved decisions, re-deriving only the affected spec, phases and notes. |
| /plan-audit | Audits a plan suite across spec, generate and review, then fixes findings in a loop without per-revision approval until none remain or the cap is hit. |
| /plan-status | Reports plan-suite progress from its tracking files across tasks, phases and artifacts, read-only. |
| /research | Runs the research pipeline from idea to peer-reviewed paper, verifying each stage hand-off and halting before data collection or publication. |
| /research-ideate | Finds a research question from zero by scanning opportunities, gaps, and invalidated hypotheses, then ranking candidates. |
| /research-spec | Frames a research question or notes into a testable spec: falsifiable hypotheses, inclusion and exclusion scope, success metrics. |
| /research-theory | Builds the conceptual framework for a framed research question: theory of change, constructs with operational definitions and a conceptual-model diagram. |
| /research-sources | Collects and screens the literature for a ratified research spec: deduplication, ranking and extraction with provenance. |
| /research-synthesis | Reconciles collected sources into a state-of-the-art map, a literature matrix and a research-gap statement. |
| /research-proposal | Turns a research gap and theoretical framework into a fundable proposal: SMART aims, feasibility, risk register with contingencies, impact pathway, data … |
| /research-design | Turns a synthesized research gap into testable predictions, a study design and a frozen preregistration. |
| /research-experiment | Runs the preregistered study protocol and records raw data with provenance: experiment log, data, and reproducibility manifest (environment, seed, version … |
| /research-analysis | Runs the preregistered statistical analysis on collected data: effect sizes with confidence intervals, multiple-comparison correction, robustness checks, … |
| /research-paper | Assembles a paper draft from the synthesis, study design, and analysis, with every citation checked to resolve. |
| /research-review | Hostile peer review of a paper, from a research suite or a supplied PDF or text: scores novelty, rigor, reproducibility, ethics; ranks revisions. |
| /research-publish | Builds the venue submission package for a reviewed paper: template formatting, cover letter, data and code availability statement, ethics and conflict … |
| /research-disseminate | Plans post-acceptance dissemination and impact: preprint announcement, FAIR data and code archive, altmetrics tracking, rebuttal loop. |
| /audit | Sweeps a repository across all eleven review dimensions in one multi-agent run and returns one verified, severity-ranked report; it never fixes anything. |
| /a11y-audit | Audits rendered pages of a web surface against WCAG 2.2 AA and reports severity-ranked findings per page, without fixing anything. |
| /architecture-review | Reviews a repository against its design document and layer rules, reporting boundary violations, coupling and wiring gaps as ranked findings. |
| /code-audit | Cross-file forensic audit: hidden coupling, type-hint gaps, coverage holes, dead and duplicate code. |
| /code-review | Reviews source files one at a time for readability, naming, complexity, idiom fit and comment quality, and reports severity-ranked findings without editing. |
| /dependency-audit | Audits direct and transitive dependencies for known vulnerabilities, license conflicts, deprecation and loose pins, ranking findings per dependency. |
| /docs-review | Reviews documentation pages for prose clarity, broken links, code-block tags, citations and public-API coverage, reporting severity-ranked findings per page. |
| /perf-audit | Audits an Apothem installation's per-class budgets (hooks, ecosystem verification, conformity gate, tests, agents, shell, lint) with its benchmark drivers, … |
| /security-audit | Audits a repository's security posture: secrets, injection, unsafe deserialization, path traversal, vulnerable dependencies. |
| /supply-chain-audit | Audits a repository's release pipeline: build provenance, artifact signing, SBOM completeness, pinned CI actions and minimum permissions. |
| /threat-model-audit | Threat-models a repository with STRIDE per element and trust boundaries, classifying actors and rating residual risk. |
| /ux-review | Reviews a repository's developer experience from a first-time user's view: CLI ergonomics, error messages, install flow and docs discoverability. |
| /fortress | Hardens a repository end to end: runs the audit sweep, verifies each finding, remediates survivors through the surgical-guard, secret-rotation and vuln-triage … |
| /elevate | Whole-repository elevation: runs the audit sweep, then critiques naming, structure, storytelling and extensibility, remediates what it finds (deletions are … |
| /eval | Runs one evaluation campaign for a language model or prompt: scores each output over a dataset and reports metrics by category plus regressions against a … |
| /freshify | Use when a repository must be made fresh and release-clean: purges caches and stale artifacts, removes legacy narrative and back-references, normalizes file … |
| /github-deploy-fresh | Use when a GitHub repository needs one clean first release on origin/main: a single v0.1.0 release commit, green workflow cards, a first-version changelog, and … |
| /github-deploy-next | Use to run the next release cycle on a GitHub repository: merge ready pull requests, resolve the issues the release addresses, derive the SemVer bump from … |
| /projectify | Builds the Description, Instruction and knowledge files for a chat-app Project or custom assistant through guided questions, within the platform's context … |
| /release-readiness | Pre-release gate sweep: use before shipping a repository to check lint, format, types, tests, dependency and supply-chain risk, visibility surfaces, changelog … |
| /test-suite | Authors and runs behavior-first tests for a repository, triages failures and reports coverage gaps on critical paths. |
| /workflow | Use to run a non-trivial mission as an independent multi-agent workflow: parallel subagents under named return contracts, refute-by-default verification of … |