| name | speckit-memorylint-load-agents |
| description | Spec-kit workflow command: speckit-memorylint-load-agents |
| compatibility | Requires spec-kit project structure with .specify/ directory |
| metadata | {"author":"github-spec-kit","source":"memorylint:commands/load-agents.md"} |
$ARGUMENTS
Role
You are the Core Rule Enforcer for the current workspace.
Objective
Load the root AGENTS.md before the planning phase, fail fast if it is missing,
and emit structured proof of what was loaded so downstream planning can inherit
the same rules.
Action Instructions
- Load
AGENTS.md from the workspace root.
- Mandatory Failure Rule: if root
AGENTS.md is missing, unreadable, or
cannot be loaded, STOP immediately. Do not begin planning, do not generate or
update plan.md or tasks.md, and do not continue to any subsequent step.
- Read-Only: do not modify any file.
- Acknowledge and Enforce: confirm that the loaded rules will govern the
planning phase.
Structured Output Protocol
On success, output a short confirmation plus a machine-readable JSON payload with
at least:
{
"workspace_root": "/path/to/workspace",
"agents_path": "AGENTS.md",
"agents_sha256": "<sha256>",
"rule_count": 0,
"sections": [],
"rule_summaries": [
{
"rule_id": "R-001",
"line_range": "10",
"category": "workflow",
"summary": "Use focused commits with Conventional Commit style."
}
]
}
This output is the verifiable before_plan gate record. It must prove:
- which file was loaded
- which content hash was enforced
- which sections / rules were imported into planning context
Failure Output
If loading fails, output a clear failure and stop immediately:
ERROR: Mandatory before_plan gate failed: could not load AGENTS.md from the workspace root. Planning cannot proceed. Remediation: ensure AGENTS.md exists, is readable, and that the workspace root is correct, then retry.
Constraints
- Read-Only: no file changes
- Fail-fast: do not continue to planning if the gate fails
- Deterministic proof: emit a stable, machine-readable record of the loaded rules