Nw Fp Usable DesignSAFE
AI agents that guide you from idea to working code, with you in control at every step.
Overview
AI agents that guide you from idea to working code, with you in control at every step.
1a864ec81cdeOBSERVED · 2026-10-14What it tells the agent
The instruction file, verbatim from the audited commit — this is the text the model reads, and the surface the audit's instruction layer examines. Quoted here so you can judge it without cloning anything.
--- name: nw-fp-usable-design agent: nw-functional-software-crafter description: Naming conventions, API ergonomics, and usability patterns for functional code user-invocable: false disable-model-invocation: true --- # FP Usable Design Make functional code usable. The developer is the user of your design. Apply usability thinking to code organization, naming, and architecture. Cross-references: [fp-domain-modeling](../nw-fp-domain-modeling/SKILL.md) | [fp-hexagonal-architecture](../nw-fp-hexagonal-architecture/SKILL.md) | [fp-algebra-driven-design](../nw-fp-algebra-driven-design/SKILL.md) --- ## 1. Core Insight [STARTER] The user of software design is the developer, not the end user. When developers struggle, blame the design, not the people. Pressure, team churn, unclear specs, and noisy environments produce unusable designs. Improve the design. --- ## 2. Five Evaluation Goals [STARTER] | Goal | What It Means | How to Assess | |---|---|---| | **Learnability** | How quickly a new developer becomes productive | Timed tasks for unfamiliar developers | | **Efficiency** | How fast common tasks are performed | Count unnecessary navigation and decisions | | **Memorability** | How easily proficiency returns after time away | What do returning developers re-learn? | | **Error resistance** | How many bugs the design induces | Track bug locations; ask "what design change prevents this category?" | | **Satisfaction** | How pleasant to work in the codebase | Developer interviews, retrospectives | --- ## 3. Naming Conventions [STARTER] ### Domain Language in Function Names Use domain expert's vocabulary, not mathematical conventions or technical jargon. No `OrderFactory`, `OrderManager`, `OrderHelper`. ### Verb-Noun for Transformations (Pipeline-Friendly) ``` rawOrder |> validateOrderFields |> enrichWithCustomerData |> calculateOrderTotal |> applyDiscountRules |> generateOrderConfirmation ``` ### Predicate Functions Use Question-Style Names ``` isActiveCustomer -- not: checkActive, activeP hasShippingAddress -- not: shippingAddr, addrCheck canPlaceOrder -- not: orderOk, validateOrderBool ``` ### When Short Names Are Acceptable Single-letter names appropriate only in: library internals and generic utilities | lambda parameters in trivial operations | type variables | mathematical domains where convention IS domain language. ### Lifecycle Prefixes Types at different workflow stages get prefixed: `UnvalidatedOrder`, `ValidatedOrder`, `PricedOrder`. Stage immediately visible in any type signature. ### Error Type Naming Named after what went wrong, scoped to context: `ValidationError`, `PricingError`. Pipeline-level: `PlaceOrderError` (choice type unifying step errors). --- ## 4. Feature-Oriented Organization [STARTER] Organize by feature domain rather than technical layer. **Instead of** (technical layers): ``` controllers/ services/ models/ ``` **Use** (feature domains): ``` auth/ speakers/ speakers/profile/ order/ ``` **When**: Developers frequently need to find and modify all code related to a specific feature. **Why**: When something changes in "call for speakers," it's obvious where to look. Technical layering scatters related code across entire codebase. ### Module Organization Within a Feature - Simple types at top (no dependencies) - Compound domain types in middle - Aggregates and workflow types at bottom - Types and functions in same file or types-first, functions-second --- ## 5. Navigability as First-Class Concern [STARTER] Typical developer workflow (find, navigate, read, write, test) executes hundreds of times per day. Small improvements compound. **Eliminate**: Long methods requiring scrolling | unclear method names forcing reading implementations | tests unrelatable to features | inconsistent placement of similar logic. **Naming as navigation**: Consistent patterns where suffix/prefix indicates design role. Names precise enough that search yields 3-4 results at most. IDE-friendly casing enables fast jump-to. **Why**: Navigability is quasi-ignored with enormous cumulative impact. --- ## 6. Design Elements (Constrained Roles) [INTERMEDIATE] Define constrained roles for your codebase. Each role specifies: responsibilities, allowed collaborators, and testing approach. | Role | Responsibilities | Can Call | Test With | |---|---|---|---| | Controller | Delegates operations, renders views | Services, Command Objects | Component tests | | Command Object | Validates input, delegates writes | Database services, queries | Unit tests | | Application Service | Orchestrates business logic | Commands, other services | Integration tests | | Database Query | Read-only data access | Database only | Unit tests | | View Model | Shapes data for presentation | Nothing | Unit tests | **Why**: Makes design "easy to use correctly, hard to use incorrectly." Controller can't write to database, so database bugs can't originate in Controllers. **Rules for design elements**: - Derive after building 10+ features, not upfront - Cover 80% of cases; handle exceptions case-by-case - Review periodically as product evolves - Make compliance easier than deviation (samples, generators, testing support) --- ## 7. Constraints as Clarity [INTERMEDIATE] Deliberately restrict what each component can do. Constrain both behavior (what a thing does) and collaboration (what it can call). **Why**: Unconstrained components express too much. Good abstractions restrict possibilities to make remaining ones clearer. Immutability is a prime example. **When a use case doesn't fit**: Extract into separate module with its own consistency rules rather than polluting main design. --- ## 8. Root-Cause Bugs in the Design [INTERMEDIATE] Ask "what design change prevents this category of bug?" rather than fixing individual instances. Track bug-prone areas and redesign them. **Fear of making changes signals design problem**: unclear side effects | missing tests | tangled
Trust audit
SAFEgrade B · trust 89/100 Nothing in the source contradicts what it says it does. Grade A is reserved for packages that have also passed the behavioural sandbox.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | NA |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- none-observed
- Shell
- none-observed
- Dependencies
- pinned
- Secrets in source
- none-found
Findings (0)
No findings outside the package's declared scope.
Gates applied: no_behavioural_pass.
1a864ec81cdefull audit observations/trust-audit/skill/nwave-ai__nw-fp-usable-design.json · Report an issue / request a re-scanAudit history
Every audit this skill has had.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-10-14 | 1a864ec81cde | SAFE | B | 89 | first audit |
Questions
What does the Nw Fp Usable Design skill do?
AI agents that guide you from idea to working code, with you in control at every step.
Is Nw Fp Usable Design safe to install?
The audit found nothing in the source that contradicts what it says it does, and graded it B (89/100). Grade A is held back for packages that have also passed a sandboxed behavioural run, which is why a clean skill reads B.
What can Nw Fp Usable Design access on my machine?
The audit observed no filesystem, network or shell use at all in its source.
How current is this page?
The grade is for one exact copy of the source (1a864ec81cde), read on 2026-10-14. The repository is watched, and a new audit runs when it changes — this is the first audit.