Skip to content
Back to skills

Lint

ASecurity

Find and fix workspace hygiene and drift. Use when the user says "lint", "lint vault", "check hygiene", "check broken links", "check orphans", "check staleness", "contradictions", "schema violations".

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrustgo

Works with

  • mcp

Security analysis

A100/100

Pro scans all 4 files and shows the line behind each finding

Scanned December 3, 2026

npx -y skills add ajayjohn/tars-work-assistant --skill lint --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Lint?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Lint
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ajayjohn-lint/badge)](https://www.skillsdirectory.com/skills/ajayjohn-lint)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lint
description: 'Find and fix workspace hygiene and drift. Use when the user says "lint", "lint vault", "check hygiene", "check broken links", "check orphans", "check staleness", "contradictions", "schema violations".'
user-invocable: true
triggers:
  - "lint"
  - "lint vault"
  - "check hygiene"
  - "check broken links"
  - "check orphans"
  - "check staleness"
  - "contradictions"
  - "schema violations"
help:
  purpose: |-
    Keeps the workspace trustworthy as it grows: finds broken links, schema
    and key drift, stray backups, stale index entries, unconfirmed living
    notes, orphans and contradictions, repairs what is safe at once, and
    offers every other deterministic fix in one numbered review.
  use_cases:
    - "Lint the vault"
    - "Check for broken links"
    - "Find orphan notes"
    - "Which notes need confirming?"
    - "Show contradictions"
    - "Validate schemas"
  scope: hygiene,validation,wikilinks,orphans,schemas,keys,staleness,contradictions
---

# Lint

<!-- tars:preflight -->
**Extension pre-flight (required).** Before this workflow reads sources, calls a provider, or briefs a subagent: call `mcp__tars_vault__resolve_extension` with the skill and mode, then read every id in `load` to the end with `mcp__tars_vault__read_extension` (page with `offset` until `complete` is true) and follow it. Resolve providers with `mcp__tars_vault__resolve_capability` and branch on `resolution` (`resolved`, `unresolved`, `ambiguous`). A subagent brief either includes the loaded extension instructions or states that the main agent makes all provider calls.
<!-- tars:preflight:end -->

Lint is the third core operation beside ingest and query. Its outcome is a
workspace the owner can trust, not a list of warnings: when a deterministic
fix exists, lint applies it (safe repairs) or offers it in bulk (everything
else), and reports only what is left.

## Modes

| Trigger | Scope |
|---|---|
| `lint`, "check hygiene", no argument (default) | every check |
| `--focus links \| orphans \| schema \| knowledge \| stale \| contradictions \| framework` | that check family only |
| `--actions [wikilinks \| patterns \| curator]` | the review queue for every check, or one subset (`references/actions.md`) |

"Check staleness" means living notes past their staleness tier. It never
covers initiatives (background context with no status or health) or old
tasks (those reach the owner only in the weekly "still relevant?" batch).

## Run

1. Run the read-only scanners and helper checks in `references/checks.md`;
   knowledge-model checks come from `scripts/knowledge-lint.py`
   (`references/knowledge.md`).
2. Apply the repair tier at once: `runtime_info(repair=true)` (missing
   schema, install pointer, stray backups, stale index entries, schema-key
   synonyms, retired task keys), then the deterministic file fixes listed as
   repair in `checks.md` (bracket artifacts, high-confidence link targets,
   unfiled journal notes, computable schema values, task title backfill,
   hydration counters, activity ledger).
3. Reconcile or migrate the rest: build one numbered review of every fix
   that needs a choice, grouped so like items are accepted together
   (`references/actions.md`). Key drift goes through one `migrate_keys`
   decision; dated update blocks and duplicate subjects are routed to
   maintain `migrate-memory` / `consolidate`.
4. Attended or unattended, as below, then record `last_health_check` in
   housekeeping state.

## Attended and unattended

Unattended is decided only by core → "Unattended runs" (a scheduled-run
prompt, or the run says it is unattended); follow that contract.

- **Attended**: report what was repaired in one line, then one numbered
  review (critical first, then fixes to approve, then routed items). Apply
  exactly what the user selects; no reply applies nothing.
- **Unattended**: apply the repair tier only; ask nothing; hold every other
  fix, unapplied, in the lint record `journal/YYYY-MM/YYYY-MM-DD-lint.md`
  for the weekly review or the next attended lint. Write no record when the
  run repaired nothing and found nothing. End with the status line, counts
  per tier, assumptions and open questions.

## Scheduling

Lint runs on a schedule only when the `schedule` setting has a `lint` job;
`scheduled_jobs` generates and registers it through the `scheduler`
capability. Change the time in the setting, not here. A scheduled run skips
itself when `last_health_check` shows a lint in the last 12 hours.

## Gotchas

- Repairs are silent-tier: reversible (the helper keeps backups and logs
  each change in `_system/changelog/`) and they change no meaning. Anything
  that alters body content, removes a key, archives, or picks between two
  values goes to review, never to repair.
- Never resolve a contradiction yourself: show both claims with source and
  date (core → "Knowledge model": an older record is history, a newer one a
  reconcile event) and let the owner choose.
- Never echo a matched secret back; give the file and line only.
- Never delete files; archive through `archive_note`, and show its refusal
  reason rather than forcing.
- All writes go through `mcp__tars_vault__*` tools or the listed scripts'
  `--apply` modes; never edit workspace files directly.
- Run `heal-wikilinks` after bracket artifacts are fixed, or it proposes
  targets for links that were only malformed.
- Old open tasks and initiatives are not lint findings; do not nag about
  them.
- At most 50 items per report; narrow with `--focus` or page.
- Circuit breaker: after three helper errors in one run, stop and report
  status (partial or blocked) instead of pushing through.
- A scanner that fails to run skips its checks with one line in the report;
  the rest of lint continues.

## References

- `references/checks.md`: every check, scanner command, and tier.
- `references/knowledge.md`: knowledge-model checks and key migration.
- `references/actions.md`: review queue layout, selection syntax, fix
  calls, `--actions` subsets, unattended record, housekeeping.

Files in this skill

  • SKILL.md5.9 KB
  • references/actions.md4.2 KB
  • references/checks.md6.3 KB
  • references/knowledge.md2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.