Keep domains independent
Own tables inside a bundle and call other domains through declared coordinator interfaces.
Skill
Add a domain without tangling the application.
An authoring skill for Torque developers. Give a bundle a clear responsibility, connect it through declared interfaces and events, and plan data changes before they reach an existing store.
Fictional bundle: maintenance tasks Owns: task records and task state Depends on: declared asset query interface Consumes: asset.updated with declared payload Optional dependency absent: task history still readable Acceptance: event replay is idempotent; migration can roll back
Fictional worked example. It illustrates the intended output; it is not a measured result or a real customer story.
Own tables inside a bundle and call other domains through declared coordinator interfaces.
Align manifest queries, routes, handlers, events and UI exports with the installed host contracts.
Include migration, restart and rollback in the slice instead of assuming hot reload proves readiness.
The film
In 70 seconds, Pockets the raccoon night porter borrows a master key to fetch another floor’s news, and the tasks floor goes dark when the assets floor renames a column. Build with Torque keeps each domain on its own keycard floor: you ask a neighbour through the coordinator on a declared line, react to past-tense events, plan what still works when a neighbour is gone, and try data changes on a mock-up floor with a way back. Captions are on the player; a transcript is below.
Your Torque app is one hotel. Each domain has its own keycard floor.
Tasks needs boiler news, so Pockets borrows a master key.
Assets renames a column. Tasks goes dark.
Build with Torque keeps each domain on its own floor.
To ask a neighbour, you call the coordinator on a line you declared.
A boiler changes, and assets posts a past-tense fact. Tasks reacts.
Out comes the plan: what tasks owns, what it needs, what works when a neighbour is gone.
Data changes go to a mock-up floor first, with a way back.
Its checks test the guide, not your running hotel.
On screen: Own your tables. Declare the rest.
Build with Torque. Add a domain without tangling the application.
The hotel and its building-maintenance app are a fictional example. The film shows how the skill behaves; it does not report results.
Fictional worked example. It illustrates the intended output; it is not a measured result or a real customer story.
Inspect the current mount plan and neighboring bundles; decide whether configuration or a new domain is needed.
Declare data ownership, named inputs, dependencies, events and degraded behavior.
Exercise success, invalid input, authorization, missing dependencies, persistence and recovery.
Fictional example
The brief A fictional maintenance app needs task cards that react to asset changes.
Import the asset bundle directly and query its tables from the task domain.
Keep task storage scoped; declare the asset dependency and public query contract, subscribe to a past-tense asset event, and test missing optional dependencies.
The useful boundary is the declared behavior and contract; a shared process does not justify shared private state.
Use when designing a Torque domain, authoring a bundle manifest and logic, wiring events/interfaces, or validating integration and schema changes.
A domain boundary or dependency is unclear.
A bundle responsibility map with declared interfaces, events, and optional dependencies.
The domain contract and host are known.
A manifest/logic/UI slice that fits the scoped data and coordinator contracts.
A bundle must join a running app or evolve its data.
A mount plan, integration checks, migration/rollback evidence, and explicit unknowns.
Build a domain that still fits the rest of the application.
Inspect its mount plan, installed package versions, neighboring domain manifests, runtime contract tests, and existing registry. State the domain outcome and what is explicitly outside it. Decide whether configuration of an existing bundle is enough or a new domain responsibility is warranted. A shared process does not make private tables or source imports public interfaces.
A bundle owns its tables; avoid cross-bundle source imports. Cross-domain calls go through the coordinator and declared dependencies. Public interfaces take named-argument objects; the manifest's query names and the class's implemented interfaces must agree in both directions. Route declarations need corresponding handlers. Authentication, validation, and application authorization are distinct checks; a declaration alone is not proof they ran.
Events describe past-tense facts using the domain/entity namespace, with a declared payload. Subscriptions should match published events and preserve idempotency/recovery assumptions. An optional dependency can be absent: define the degraded behavior and test it. Keep UI component export keys aligned with manifest routes, and use the current shell contract rather than copying another app's internals.
Intents explicitly declare context, allowed tools, goal, success criteria, and required confirmation. Runtime enforcement must be verified against the installed engine; a prompt promise is not a permission boundary. Use the application's existing authorization and provider setup. Do not install an AI runtime merely to author a non-AI domain.
Run the native manifest/contract validator and tests available in the host. Check a successful interface call, invalid input, unauthorized request, missing dependency, event reaction, state persistence, and failure recovery where applicable. A mocked unit test is not proof that HTTP, UI, or a real database migration works. For schema changes, retain data snapshot and rollback; a table rebuild rewrites data even when called a type change. Hot reload does not establish a production restart or migration.
Return changed bundle/mount-plan paths, ownership and contract decisions, exact native commands/results, actual runtime scope, migration status, and unresolved evidence. The reference mirrors are generated from the canonical docs with a hash check; edit the docs, not the generated copies. Documentation-content checks establish coverage and packaging, not framework behavior or user benefit.
Bring the host mount plan and one domain you want to add.
The download contains the complete skill folder. Extract it into the skills directory supported by your agent, keeping its references and license together. Or use the source installer below. Python 3.11+ is required for that installer.
git clone https://github.com/michaeljabbour/amplifier-skill-build-torque.git
cd amplifier-skill-build-torquepython3 scripts/capability.py doctor
python3 scripts/capability.py install --dest ~/.agents/skillstorque --help
torque validate
torque doctorThese commands are for the optional native surface. Follow its installation guide and prerequisites; portable method installation is separate.
Keep the complete skill folder together, including its references and license. The host applies the method in your context; the skill does not start a background service.
Use Build with Torque to design a maintenance-task bundle. It should react to asset changes without reading another bundle’s private tables. Inspect this host first, then propose its manifest, public interfaces, events and migration checks.Use after installing in a host that loads skill folders. Supply your own task files and review the result.
Read the guide · License · Changes · Release metadata · Install guide · Migration · Validation · Native guide · consolidation
Canonical reference hashes and 106 documentation checks passed. They establish reference coverage, not a deployed framework. Native package availability and app behavior need checking against your installed Torque environment.
AI setup, Bundle Authoring, and Registry mirrors match canonical sources plus their recorded source/output hashes.
47 Node tests and 59 Python tests pass. These verify documentation coverage only; no Torque framework/runtime or app deployment result is claimed.
Canonical ZIP bytes, local links, complete method/license, clean install and idempotent reinstall pass. No runtime starts.
Canonical reference hashes and 106 documentation checks passed. They establish reference coverage, not a deployed framework. Native package availability and app behavior need checking against your installed Torque environment.
Fictional examples explain the capability. Tests check the stated behavior. Outside-user outcomes need their own evidence.