deliberate-ai-use
Skill54 starsChanged 3 months agoMITView on GitHub
Bevisst KI-bruk i Nav: grønn og rød sone, tre-forsøks-regelen, erfaringsnivå og generer-så-forstå, med forskningen bak. Bruk når utvikleren spør om KI bør gjøre en oppgave, vil lære, eller når en oppgave skal plasseres i grønn eller rød sone.
In this repository35 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- ai-news-researchSkill
- aksel-builderSkill
- aksel-spacingSkill
- api-designSkill
- conventional-commitSkill
- flyway-migrationSkill
- jackson-3-migrationSkill
- java-to-kotlinSkill
- kafkaSkill
- klarsprakSkill
- kotlin-app-configSkill
- ktor-scaffoldSkill
- naisSkill
- nav-architecture-reviewSkill
- nav-authSkill
- nav-deep-interviewSkill
- nav-dekoratorenSkill
- nav-planSkill
- nav-troubleshootSkill
- observability-debuggingSkill
- observability-setupSkill
- playwright-testingSkill
- postgresql-reviewSkill
- readme-reviewSkill
- rust-developmentSkill
- security-owaspSkill
- security-reviewSkill
- spring-boot-scaffoldSkill
- terse-modeSkill
- threat-modelSkill
- tokenx-authSkill
- web-design-reviewerSkill
- workstation-securitySkill
The file
We split this skill into the rules it gives an agent
4 rules. About 0 are common, 4 are distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 38
Test data and fixtures
- Distinctive: line 56
When AI generates code, do not just accept it.
- Distinctive: line 59
Understand: ask *why* the code is written the way it is
- Distinctive: line 60
Verify: check that you can explain every part yourself
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Deliberate AI Use
The always-on rules (explain choices, mark red-zone code, ask before delegating fully) are in deliberate-ai-use.instructions.md. This skill holds the rest of the framework: why it exists, how to classify a task, and how a developer works with generated code.
Why
Research shows that how you use AI matters more than whether you use it. Developers who delegate blindly score 35–39 % on comprehension. Those who actively ask questions after code generation score 86 %, higher than those who code without AI at all (67 %).
The framework makes sure AI tools strengthen developers' skills instead of weakening them.
Sources:
- Anthropic: How AI assistance impacts coding skills (2026)
- INNOQ: AI Coding Patterns Through Cognitive Load Theory (2026)
- METR: AI experienced OS dev study (2025)
- Stray et al.: Developer Productivity With and Without GitHub Copilot (HICSS-59, 2026), a study of Nav IT
- MIT/Microsoft: The Effects of Generative AI on High-Skilled Work (2025)
- Nav developer survey 2026: 59 % are worried about losing skills
Green and red zone
Classify a task before using AI on it.
🟢 Green zone: suited to AI
Tasks where AI adds the most value without weakening understanding:
- Boilerplate and repetitive code (Nais manifest, CRUD endpoints, Dockerfile)
- Technology the developer already knows well
- Configuration and infrastructure
- Refactoring with a known goal (rename, extract, move)
- Test data and fixtures
🔴 Red zone: code by hand first
Tasks where coding by hand builds critical skill:
- Debugging: troubleshooting is the strongest learning mechanism
- New concepts: technology the developer has not used before (learn first, generate afterwards)
- Core logic: business rules, calculations, state machines
- Security-critical code: authentication, authorization, input validation
- Architecture decisions: system design, data models, API contracts
Three-attempt rule: try to solve the problem yourself, with at least three attempts (approaches), before asking AI for help. Each attempt builds understanding that makes you better able to judge the AI's suggestions.
Experience level: junior developers should keep more in the red zone. Research shows they gain the most productivity from AI, but are also the most vulnerable to losing skills. Experienced developers can have a wider green zone for technology they already know well.
Generate-then-understand
When AI generates code, do not just accept it. Use the generate-then-understand pattern:
- Generate: let the AI write the code
- Understand: ask why the code is written the way it is
- Verify: check that you can explain every part yourself
- Adapt: make deliberate changes, not just copy-paste
Good follow-up questions
Offer these to the developer as written, in Norwegian:
Hvorfor valgte du denne tilnærmingen fremfor alternativene?
Hva kan gå galt med denne koden?
Hvilke edge cases dekker den ikke?
Forklar tradeoffene i denne designbeslutningenDoes it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

