Skip to content

Commit fb70c0b

Browse files
feat(.ai): mindset descriptions for ai agent
1 parent 46dfc1d commit fb70c0b

11 files changed

Lines changed: 57 additions & 11 deletions

File tree

.ai/skills/accessibility-compliance/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: Implement WCAG 2.2 compliant interfaces with mobile accessibility,
77

88
Master accessibility implementation to create inclusive experiences that work for everyone, including users with disabilities.
99

10+
## Mindset
11+
12+
You are an accessibility expert. WCAG compliance is a floor, not a ceiling — never sign off on "close enough." Verify with real assistive technology before anything is declared done.
13+
1014
## When to Use This Skill
1115

1216
- Implementing WCAG 2.2 Level AA or AAA compliance

.ai/skills/accessibility-migration-analysis/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ alwaysApply: false
99

1010
Create comprehensive accessibility documentation for the **analyze accessibility** step of 2nd-gen component migration. One markdown file per component, following a fixed structure (ARIA context, recommendations, testing, checklist, references).
1111

12+
## Mindset
13+
14+
You are an accessibility auditor, not a documenter. Your job is to verify what the component actually does — not describe what it should do. Read the source first, check ARIA against the real implementation, then write. Never document behavior you haven't confirmed.
15+
1216
## When to use this skill
1317

1418
- You are on the "analyze accessibility" step of the 2nd-gen component migration workstream

.ai/skills/ask-questions/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ description: Clarify requirements before implementing. Use when serious doubts a
55

66
# Ask Questions If Underspecified
77

8+
## Mindset
9+
10+
You are a requirements analyst. The cost of a wrong assumption is always higher than the cost of one more question. Ask only what's necessary, group questions to minimize interruptions, and never proceed on ambiguous scope.
11+
812
## When to Use
913

1014
Use this skill when a request has multiple plausible interpretations or key details (objective, scope, constraints, environment, or safety) are unclear.

.ai/skills/component-migration-analysis/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: Create rendering-and-styling migration analysis docs for 2nd-gen co
77

88
Create comprehensive migration documentation for the **analyze rendering and styling** step of 2nd-gen component migration. One markdown file per component, following a fixed structure (specs, comparison, summary, resources).
99

10+
## Mindset
11+
12+
You are a code archaeologist. Read existing code without judgment — your job is to document what _is_ before imagining what _should be_. Curiosity about past decisions leads to better future ones.
13+
1014
## When to use this skill
1115

1216
- You are on the "analyze rendering and styling" step of the 2nd-gen component migration workstream

.ai/skills/contributor-docs-nav/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: Run the CONTRIBUTOR-DOCS nav script to update breadcrumbs and TOCs,
77

88
Run the regeneration script to update breadcrumbs and TOCs in CONTRIBUTOR-DOCS, and handle link verification. Two roles apply: **Operator** (run the script, fix link errors) and **Maintainer** (update the script when requirements change).
99

10+
## Mindset
11+
12+
You are a documentation maintainer. Broken links and stale navigation are bugs, not inconveniences. Never mark work done until every link is verified.
13+
1014
## When to use this skill
1115

1216
- A file or folder under CONTRIBUTOR-DOCS is added, removed, renamed, or moved

.ai/skills/conventional-commits/SKILL.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ metadata:
1010

1111
Follow these conventions when creating commits.
1212

13+
## Mindset
14+
15+
You are writing for the next person who reads this commit log, not for yourself. Clarity and consistency matter more than brevity. Commit subjects should suggest _why_ work was committed, not just what changed.
16+
1317
## Prerequisites
1418

1519
Before committing, ensure you're working on a feature branch, not the main branch.
@@ -63,8 +67,9 @@ Source list: `.ai/config.json` → `git.types`.
6367
## Subject Line Rules
6468

6569
- Use imperative, present tense: "add feature" not "added feature"
66-
- Start with a lowercase letter — commitlint enforces this (`subject-case` rule forbids sentence-case, start-case, pascal-case, and upper-case)
67-
- No period or white space at the end
70+
- **Always lowercase** — commitlint enforces lowercase subjects;
71+
sentence-case, start-case, and pascal-case are all rejected
72+
- No period at the end
6873
- Maximum 70 characters
6974

7075
## Body Guidelines
@@ -73,9 +78,9 @@ Source list: `.ai/config.json` → `git.types`.
7378
- Use imperative mood and present tense
7479
- Include motivation for the change
7580
- Contrast with previous behavior when relevant
76-
- Use a bullet point for each distinct concept or reason this also handles line length naturally
81+
- Use a bullet point for each distinct concept or reason (this also handles line length naturally)
7782
- If a bullet's text exceeds 80 characters, continue on the next line flush with the
78-
bullet text (no indentation)
83+
bullet text (no indentation)
7984

8085
## Conventional Commits
8186

@@ -116,17 +121,18 @@ or resolved instead of creating a new message
116121
```
117122
refactor: extract common validation logic to shared module
118123
119-
Move duplicate validation code from three endpoints into a shared
120-
validator class. No behavior change.
124+
- Move duplicate validation from three endpoints into a shared
125+
validator class
126+
- No behavior change
121127
```
122128

123129
### Breaking change
124130

125131
```
126132
feat(api)!: remove deprecated v1 endpoints
127133
128-
Remove all v1 API endpoints that were deprecated in version 23.1.
129-
Clients should migrate to v2 endpoints.
134+
- Remove all v1 API endpoints deprecated in version 23.1
135+
- Clients should migrate to v2 endpoints
130136
131137
BREAKING CHANGE: v1 endpoints no longer available
132138
```
@@ -136,9 +142,8 @@ BREAKING CHANGE: v1 endpoints no longer available
136142
```
137143
revert: feat(api): add new endpoint
138144
139-
This reverts commit abc123def456.
140-
141-
Reason: Caused performance regression in production.
145+
- Reverts commit abc123def456
146+
- Caused performance regression in production
142147
```
143148

144149
## Principles

.ai/skills/deep-understanding/SKILL.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ Every meaningful task that touches non-trivial code should start with a **deep-r
99

1010
**Rule:** The deep-understanding rule (`.ai/rules/deep-understanding.md`) is **applied intelligently**. Use it for non-trivial work (multiple files, new area, complex behavior); do not use it for simple, self-contained requests (e.g. creating a regex, one-line fix, single known file) to avoid wasting tokens and overloading context. This skill documents the full workflow and rationale.
1111

12+
13+
## Mindset
14+
15+
You are a research scientist. Form no hypotheses before gathering evidence. Write everything down. Treat assumptions as technical debt — the earlier they go undocumented, the more they cost later.
16+
1217
## When to use this skill
1318

1419
- The task involves a folder, flow, or system the agent may not already understand in depth

.ai/skills/documentation/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: When writing documentation in a variety of scenarios, follow the Ad
77

88
Understand the Spectrum Design System's content writing standards and expectations at an expert level.
99

10+
## Mindset
11+
12+
You are a technical writer. Documentation is a product, not an afterthought. Write for the reader, not the author — cut anything that doesn't serve them.
13+
1014
## When to Use This Skill
1115

1216
- Designing and writing story documentation (i.e. JSDoc comments) for Storybook

.ai/skills/explain-code/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: explain-code
33
description: Explains code with visual diagrams and analogies. Use when explaining how code works, teaching about a codebase, or when the user asks "how does this work?"
44
---
55

6+
## Mindset
7+
8+
You are a teacher. The best explanation is the one the learner can repeat back in their own words. Lead with the analogy, not the implementation.
9+
610
When explaining code, always include:
711

812
1. **Start with an analogy**: Compare the code to something from everyday life

.ai/skills/session-handoff/SKILL.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ description: "Creates comprehensive handoff documents for seamless AI agent sess
77

88
Creates comprehensive handoff documents that enable fresh AI agents to seamlessly continue work with zero ambiguity. Solves the long-running agent context exhaustion problem.
99

10+
## Mindset
11+
12+
You are a project manager. Context is the most perishable asset in software development. If the next agent can't pick up exactly where you left off, the handoff failed.
13+
1014
## Mode Selection
1115

1216
Determine which mode applies:

0 commit comments

Comments
 (0)