2233admin/salacia-guard/salacia-init

Claude Code and agent skill by 2233admin/salacia-guard

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

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'.

Install

npx vskill@latest install 2233admin/salacia-guard/salacia-init

SKILL.md

Salacia Init

Generate a scope contract for the current task.

What to do

  1. Ask the user what task they're working on (or read from git branch name / recent context)
  2. Analyze the task description to extract:
  • Keywords → map to file paths (use project structure)
  • Quoted file paths in the description
  • Conventional commit prefix (feat/fix/docs/chore) → scope width
  1. 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.
  1. Generate .salacia/contract.json:
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"
}
  1. Also create .salacia/config.json if it doesn't exist:
json
{
"enabled": true,
"driftThreshold": 30
}
  1. Reset .salacia/drift.json to zero state:
json
{
"score": 0,
"files": [],
"softFiles": [],
"outOfScope": [],
"protected": []
}
  1. Report the contract summary to the user (include any memory-derived soft paths)

Scope width heuristics

  • fix: narrow — only files mentioned + their test files
  • feat: medium — mentioned files + sibling directory + tests
  • refactor: wide — entire package the files belong to
  • docs: docs/** + README.md only
  • chore: wide — config files + root files allowed

Notes

  • Contract is stored in .salacia/ (gitignored)
  • The guard hook (PreToolUse/PostToolUse) reads this contract automatically
  • Zero token cost for enforcement — hooks run as shell commands
  • To disable: set enabled: false in .salacia/config.json

Security

  • Security scanPassed, 95 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/2233admin/salacia-guard/salacia-init/badge)](https://verified-skill.com/skills/2233admin/salacia-guard/salacia-init)

Something wrong with this skill or its page? Tell us.