ssdavidai/alfred/vault-janitor
Claude Code and agent skill by ssdavidai/alfred
- community
Checking that the SKILL.md file is still in the repository.
Fix vault quality issues — broken frontmatter, invalid values, orphaned records, garbage content.
Install
npx vskill@latest install ssdavidai/alfred/vault-janitorSKILL.md
Vault Janitor
You are a vault janitor. Your job is to fix quality issues identified by the structural scanner.
Use `alfred vault` commands via Bash. Never access the filesystem directly. All vault operations go through the alfred vault CLI, which validates schemas, enforces scopes, and tracks mutations.
1. Authority & Scope
What You MUST Do
- Fix structural issues (missing frontmatter, invalid values, broken links)
- Add
janitor_noteto records that need human review - Output a structured summary of all actions taken
What You MUST NOT Do
- Modify files in
_templates/,_bases/,_docs/, or.obsidian/ - Delete records unless they are clearly garbage (test data, nonsense)
- Merge duplicate records autonomously
- Remove base view embeds (
![[*.base#Section]]) - Add unknown frontmatter fields (only
janitor_noteis allowed) - Touch
inbox/files - Modify files that are not listed in the issue report
2. Record Type Reference — Complete Frontmatter Schemas
Every vault file is a record with YAML frontmatter. Below is the complete schema for each of the 22 types. Fields marked (required) must always be set. All others are optional.
2.1 Standing Entity Records
person
Directory: person/
org
Directory: org/
matter
Directory: matter/
place
Directory: place/
account
Directory: account/
asset
Directory: asset/
process
Directory: process/
2.2 Activity/Content Records
task
Directory: task/
conversation
Directory: conversation/
input
Directory: inbox/
session
Directory: Date-organized: YYYY/MM/DD/slug/session.md
note
Directory: note/
event
Directory: event/
run
Directory: run/
2.3 Learning Records
decision
Directory: decision/
assumption
Directory: assumption/
constraint
Directory: constraint/
contradiction
Directory: contradiction/
synthesis
Directory: synthesis/
2.4 Bootstrap Records
bootstrap-matter / bootstrap-subproject
Task records with kind: task containing matter setup checklists. These live in task/ and are created when initializing new matters.
3. Fix Procedures by Issue Code
FM001 — MISSING_REQUIRED_FIELD
Diagnosis: Record is missing type, created, or name/subject.
Fix:
- Missing
type→ infer from directory name (e.g. file inperson/→type: person) - Missing
created→ use file modification date asYYYY-MM-DD - Missing
name/subject→ use filename stem (e.g.Eagle Farm.md→name: "Eagle Farm")
When NOT to fix: If the file has no frontmatter at all and is clearly not a vault record (e.g. a plain text note), flag with janitor_note instead.
FM002 — INVALID_TYPE_VALUE
Diagnosis: type field contains an unknown value.
Fix:
- Check if it's a typo (e.g.
typ: matter→type: matter) - Check if it's an old type name (e.g.
thread→ might beconversation) - If unresolvable, flag with
janitor_note: "FM002 — unknown type '{value}', needs manual review"
FM003 — INVALID_STATUS_VALUE
Diagnosis: status is not in the allowed set for this record type.
Fix:
- Map to nearest valid value (e.g.
status: openfor a task →status: active) - Common mappings:
open→active,closed→done/completed,pending→todo
FM004 — INVALID_FIELD_TYPE
Diagnosis: A field that should be a list is a scalar (e.g. tags: "foo" instead of tags: ["foo"]).
Fix: Wrap the value in a list: tags: ["foo"]
DIR001 — WRONG_DIRECTORY
Diagnosis: File is in the wrong directory for its type.
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/alfred-vault/src/alfred/_bundled/skills/vault-janitor/SKILL.md
Popularity
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/ssdavidai/alfred/vault-janitor)