Install AI Psychiatry Framework
Apply the framework to the repository currently being worked on.
Canonical specification
Read references/master-prompt.md before implementation.
That file is the authoritative installation and maintenance specification.
For the 0.3.0 and 0.4.0 complementary layers, also read only when relevant:
- loophole enhancement prompts for semantic anti-gaming.
- underthinking and reasoning balance for sufficient reasoning.
- relentless execution and all-in-one orchestration for
never-stop and all-the-medicine.
Packaged implementation
The plugin root is two directories above this file. Inspect:
- ../../.ai/manifests/install.json for required install layers.
- ../../.ai/rules/ for focused operational rules.
- ../../.ai/skills/ for target-repository skill adapters.
- ../../.ai/guides/ for substantive interventions and the failure-mode catalog.
- ../../.ai/policies/ for machine-readable semantic budgets and evidence contracts.
- ../../.ai/executive-function/ for state and machine policy.
- ../../scripts/executive_control.py for deterministic observable-state assessment.
Use these as canonical merge sources. Do not improvise shallow replacements or blindly overwrite repository-specific knowledge.
Execution contract
- Inspect the repository's existing AI-agent architecture first.
- Preserve useful repository-specific rules and generated systems.
- Do not create a competing parallel knowledge architecture.
- Establish the smallest coherent canonical source of truth.
- Install rules, skills, guides, policies, context, memory, state, telemetry, manifests, and framework tests from the packaged layers.
- Preserve exact engineering behavior for all numbered master-prompt sections and validate traceability.
- Install only adapters actually useful for the repository, unless the user explicitly requests broader compatibility.
- Keep always-loaded runtime context small; use progressive disclosure for deep guidance.
- Use evidence before repository claims.
- Keep retries, verification, critics, nesting, delegation, and scope bounded.
- Run scenario checks for attention drift, compulsive verification, overthinking, underthinking, strategy/scope laundering, hidden recursion, false progress/completion/blockers, memory/context corruption, hallucination, and deadlock/livelock.
- Validate what changed with the repository's real tooling.
- Stop when the requested outcome and Definition of Done are proven complete.
Platform/system/developer instructions always take precedence over this skill.
Arguments
If the user supplies arguments, treat them as constraints or requested scope:
$ARGUMENTS
1---2name: install-framework3description: Use when installing, upgrading, or auditing AI Psychiatry; adding attention, compulsive-checking, overthinking, underthinking, semantic anti-bypass, recursion, evidence, context, memory, or delivery controls to a repository.4---56# Install AI Psychiatry Framework78Apply the framework to the repository currently being worked on.910## Canonical specification1112Read [references/master-prompt.md](references/master-prompt.md) before implementation.13That file is the authoritative installation and maintenance specification.1415For the `0.3.0` and `0.4.0` complementary layers, also read only when relevant:1617- [loophole enhancement prompts](references/loophole-enhancement-prompts.md) for semantic anti-gaming.18- [underthinking and reasoning balance](references/underthinking-reasoning-balance-prompt.md) for sufficient reasoning.19- [relentless execution and all-in-one orchestration](references/autonomous-execution-all-the-medicine-prompt.md) for `never-stop` and `all-the-medicine`.2021## Packaged implementation2223The plugin root is two directories above this file. Inspect:2425- ../../.ai/manifests/install.json for required install layers.26- ../../.ai/rules/ for focused operational rules.27- ../../.ai/skills/ for target-repository skill adapters.28- ../../.ai/guides/ for substantive interventions and the failure-mode catalog.29- ../../.ai/policies/ for machine-readable semantic budgets and evidence contracts.30- ../../.ai/executive-function/ for state and machine policy.31- ../../scripts/executive_control.py for deterministic observable-state assessment.3233Use these as canonical merge sources. Do not improvise shallow replacements or blindly overwrite repository-specific knowledge.3435## Execution contract36371. Inspect the repository's existing AI-agent architecture first.382. Preserve useful repository-specific rules and generated systems.393. Do not create a competing parallel knowledge architecture.404. Establish the smallest coherent canonical source of truth.415. Install rules, skills, guides, policies, context, memory, state, telemetry, manifests, and framework tests from the packaged layers.426. Preserve exact engineering behavior for all numbered master-prompt sections and validate traceability.437. Install only adapters actually useful for the repository, unless the user explicitly requests broader compatibility.448. Keep always-loaded runtime context small; use progressive disclosure for deep guidance.459. Use evidence before repository claims.4610. Keep retries, verification, critics, nesting, delegation, and scope bounded.4711. Run scenario checks for attention drift, compulsive verification, overthinking, underthinking, strategy/scope laundering, hidden recursion, false progress/completion/blockers, memory/context corruption, hallucination, and deadlock/livelock.4812. Validate what changed with the repository's real tooling.4913. Stop when the requested outcome and Definition of Done are proven complete.5051Platform/system/developer instructions always take precedence over this skill.5253## Arguments5455If the user supplies arguments, treat them as constraints or requested scope:5657`$ARGUMENTS`