Skip to content
lint-instructions logo

Instruction Linter

lint-instructions

Detect and fix violations of project instructions defined in .claude/rules/. Use when checking code compliance, reviewing changes, or when the user asks about instruction violations.

SKILL.md

Full skill instructions

Instruction Linter

Validates code against project-specific rules defined in .claude/​rules/.

When to Use

  • Before committing changes
  • After implementing a new feature
  • When reviewing code for compliance
  • When user asks to check instruction compliance

Instructions

1. Load All Rules

Read all instruction files:

.claude/​rules/​code-style.md
.claude/​rules/​cross-framework.md
.claude/​rules/​packages/​core.md
.claude/​rules/​packages/​react.md
.claude/​rules/​packages/​vue.md
.claude/​rules/​packages/​svelte.md
.claude/​rules/​demo.md

2. Check Categories

For each category, verify compliance:

Code Style (code-style.md)
  • Function declarations: exports use function, callbacks use arrows
  • Type safety: satisfies over type annotations, type guards over as casts
  • Documentation: JSDoc on public APIs
Cross-Framework (cross-framework.md)
  • Component parity: all components exist in React/​Vue/​Svelte
  • Props equivalence: same props interface across frameworks
  • Hook/​Composable/​Rune equivalence: same options, similar return types
  • Core centralization: shared types/​constants/​utils in @vizel/​core
Core Package (packages/​core.md)
  • No framework dependencies (React, Vue, Svelte)
  • All shared types defined here
  • All constants defined here
Framework Packages (packages/​react.md, vue.md, svelte.md)
  • Only framework-specific wrappers
  • Correct idioms (hooks vs composables vs runes)
  • Proper context usage

3. Report Format

## Instruction Compliance Report

### ✅ Passing
- [rule]: [description]

### ❌ Violations
- [rule]: [file:line] - [issue description]
  - **Fix**: [suggested fix]

### ⚠️ Warnings
- [rule]: [potential issue]

4. Auto-Fix When Possible

For fixable violations:

  1. Show the violation
  2. Propose the fix
  3. Apply if user approves

Example Usage

User: "Check if my changes follow the project rules"

  1. Read recent git changes: git diff --name-only HEAD~1
  2. Load relevant rule files based on changed paths
  3. Check each changed file against applicable rules
  4. Report violations with fixes

Checklist Commands

Quick checks to run:

# Biome handles: formatting, imports, exports, naming
pnpm check

# Type safety
pnpm typecheck

# Build verification
pnpm build

Common Violations

ViolationRuleFix
export const fn = () => {}code-styleUse export function fn() {}
data as Typecode-styleUse type guard function
Type in framework packagecross-frameworkMove to @vizel/​core
Missing component in one frameworkcross-frameworkAdd equivalent component
default exportBiomeUse named export

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View