From salacia-guard
Initialize Salacia scope contract for the current task. Use when starting a new coding task to define which files the agent is allowed to modify. Triggers on: 'salacia init', 'scope contract', 'init salacia', 'guard scope'.
How this skill is triggered — by the user, by Claude, or both
Slash command
/salacia-guard:salacia-initThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generate a scope contract for the current task.
Generate a scope contract for the current task.
Ask the user what task they're working on (or read from git branch name / recent context)
Analyze the task description to extract:
Check .salacia/memory.json for historical patterns. If it exists, read the pattern matching the detected task type (feat/fix/etc.). Pre-fill softAllowedPaths with entries where weight >= 0.5. This lets the contract benefit from past session learning.
Generate .salacia/contract.json:
{
"taskId": "<from branch or user input>",
"allowedPaths": ["<extracted paths>"],
"softAllowedPaths": ["<sibling dirs, co-change companions>"],
"excludedPaths": ["node_modules/**", ".git/**", "dist/**"],
"protectedPaths": [".env", ".env.*", "*.pem", "*.key", "*.cert", "package-lock.json", "bun.lockb"],
"maxFilesChanged": 10,
"generatedAt": "<timestamp>",
"generatedBy": "heuristic"
}
.salacia/config.json if it doesn't exist:{
"enabled": true,
"driftThreshold": 30
}
.salacia/drift.json to zero state:{
"score": 0,
"files": [],
"softFiles": [],
"outOfScope": [],
"protected": []
}
.salacia/ (gitignored)enabled: false in .salacia/config.jsonnpx claudepluginhub 2233admin/salacia-guardValidates file modifications stay within authorized scope by checking user requests, task descriptions, and dependencies. Prevents scope creep and unauthorized edits.
Turns a rough idea into a precise goalkeeper contract with objective, DoD, validator command, and non-goals via interactive Q&A.
Executes multi-task implementation plans with per-task git-signal safety verdicts (SAFE/CAUTION/UNSAFE) before edits, code-style cascade for code generation, and worktree clone reindexing between tasks.