Skip to content
Back to skills

Write Core

ASecurity

GENERATED ONCE PER LAYER of your chain by /adapt-to-stack, into the repo's own .claude/skills/ beside <layer>-standards. The short write-time rule set for <LAYER/LANGUAGE>: only the rules that are expensive to get wrong once the code compiles. Preloaded by <layer>-specialist and slice-<layer>-specialist through their skills: line, so it is in context for every edit. The full <layer>-standards is for review, not for writing.

  • 3 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 9, 2026
ai-agentsgosecuritydocumentation

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add konstantinos-malavazos/claude-code-playbook --skill write-core --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Write Core?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Write Core
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/konstantinos-malavazos-write-core/badge)](https://www.skillsdirectory.com/skills/konstantinos-malavazos-write-core)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: <layer>-write-core
description: >-
  GENERATED ONCE PER LAYER of your chain by /adapt-to-stack, into the repo's own
  .claude/skills/ beside <layer>-standards. The short write-time rule set for <LAYER/LANGUAGE>:
  only the rules that are expensive to get wrong once the code compiles. Preloaded by
  <layer>-specialist and slice-<layer>-specialist through their skills: line, so it is in
  context for every edit. The full <layer>-standards is for review, not for writing.
user-invocable: false
---

# <LAYER/LANGUAGE> write core

These are the rules you hold while you write. Each one is cheap to follow at the keyboard
and expensive to find after the build is green. Review checks the full `<layer>-standards`
on the diff; you do not load it while writing.

## Boundaries

1. **Stay inside your layer.** No logic that belongs to another layer of the chain, and no
   edit outside the paths this layer owns.
2. **Honour the contract either side.** Consume the upstream handoff's names and shapes
   exactly as written, and hand on exactly what you built.
3. **Validate input at the boundary** where it enters this layer, and nowhere deeper.

## Correctness

4. **Async and cancellation are honoured** wherever IO happens: no sync-over-async, and a
   cancellation signal you receive is passed on, never dropped.
5. **Dependency lifetimes and disposal are correct.** Nothing outlives its scope, and
   everything you open is closed on every path.
6. **No swallowed errors.** An error is handled, or it propagates; it is never caught and
   ignored.
7. **No new dependency the plan did not name.**
8. **Schema changes go through the migration tool**, never raw DDL.

## Security

9. **No secrets in code, and no secrets or personal data in logs.** Mask identifiers you
   must log.

## Serena

10. **Resolve every member with Serena `find_symbol`; never assume** it exists or what it
    takes.
11. **A changed signature means checking its callers** with `find_referencing_symbols`
    before the build.
12. **Run `get_diagnostics_for_file`** on every file you touched, before the build.

## Tests and evidence

13. **Every behaviour change ships with a test** that proves it, through the public
    interface.
14. **A bug fix starts with a test that fails** on the unfixed code.
15. **Never claim a green build or a passing test you did not see.** Quote the command and
    its result.

Not here on purpose: style, naming, readability, comments and documentation. Review catches those through `<layer>-standards`, and carrying them here would make this file as long as the one it replaces.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.