Skip to content

Commit b5cf158

Browse files
authored
feat: add agent commands for linting, checking, building, and spellchecking in package.json and copilot instructions
1 parent d965141 commit b5cf158

2 files changed

Lines changed: 30 additions & 13 deletions

File tree

.github/copilot-instructions.md

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,23 @@ draft(bool), featured(bool), readingTime?, relatedService?,
7070
howTo?{totalTime?,estimatedCost?,steps[]{name,text}}
7171

7272
## Commands
73+
74+
### Development
7375
- Dev: `bun run dev`
74-
- Build: `bun run build` (runs `astro check` + `astro build`)
76+
- Build: `bun run build`
7577
- Check: `bun run check`
76-
- Lint: `bun run lint:fix`
77-
- Format: `bun run format:fix`
78-
- Spell: `bun cspell "**"`
78+
- Preview: `bun run preview`
79+
80+
### For use during AI-assisted implementation (errors/warnings only)
81+
- Lint: `bun run agent:lint`
82+
- Check: `bun run agent:check`
83+
- Build: `bun run agent:build`
84+
- Spell: `bun run agent:spell`
85+
86+
Always use `agent:*` commands when verifying code — never the full verbose versions.
87+
88+
After making any code changes, always run `bun run agent:verify` to confirm
89+
no errors before considering the task complete.
7990

8091
## Commit Conventions
8192
Conventional commits scoped to area: `feat(blog): add reading time display`

package.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,21 @@
55
"description": "AR10Dev Github Page",
66
"author": "AR10Dev",
77
"scripts": {
8-
"dev": "astro dev",
9-
"build": "astro check && astro build",
10-
"check": "astro check",
11-
"preview": "astro preview",
12-
"lint": "biome check .",
13-
"lint:fix": "biome check --write .",
14-
"format": "biome format .",
15-
"format:fix": "biome format --write .",
16-
"setup:d2": "curl -fsSL https://d2lang.com/install.sh | sh -s --"
8+
"dev": "astro dev",
9+
"build": "astro check && astro build",
10+
"check": "astro check",
11+
"preview": "astro preview",
12+
"lint": "biome check .",
13+
"lint:fix": "biome check --write .",
14+
"format": "biome format .",
15+
"format:fix": "biome format --write .",
16+
"setup:d2": "curl -fsSL https://d2lang.com/install.sh | sh -s --",
17+
18+
"agent:lint": "biome check --write . --reporter=summary",
19+
"agent:check": "astro check 2>&1 | grep -E '(error|warning|Error|Warning)' || true",
20+
"agent:build": "astro build --silent 2>&1 | grep -E '(error|Error|warn|✗)' || true",
21+
"agent:spell": "cspell \"**\" --no-progress --no-summary 2>&1 | grep -v '^$' || true",
22+
"agent:verify": "bun run agent:lint && bun run agent:check && bun run agent:build"
1723
},
1824
"keywords": [],
1925
"devDependencies": {

0 commit comments

Comments
 (0)