neon-format
Invoke before creating or modifying .neon files. Provides NEON syntax and Nette configuration conventions. Use when writing or editing .neon config files, asking about NEON syntax (entities, multiline strings, inline notation, special values, escaping), converting YAML to NEON, parsing or encoding NEON in PHP (Neon::decode, Neon::encode), running neon-lint, or debugging NEON syntax errors. For phpstan.neon, use the phpstan-analysis skill (from nette-dev plugin) instead. Do not trigger for Nette DI concepts like autowiring and service registration without .neon file context.
What this skill does
## NEON Format
NEON (Nette Object Notation) is a human-readable data format used for configuration files in Nette. Similar to YAML but with support for entities and tab indentation.
```shell
composer require nette/neon
```
### Mappings
Key-value pairs with required space after colon:
```neon
street: 742 Evergreen Terrace
city: Springfield
country: USA
```
Inline notation with braces:
```neon
{street: 742 Evergreen Terrace, city: Springfield, country: USA}
```
### Sequences
Indexed arrays with hyphen and space:
```neon
- Cat
- Dog
- Goldfish
```
Inline notation with brackets:
```neon
[Cat, Dog, Goldfish]
```
### Nesting
Indentation defines structure:
```neon
pets:
- Cat
- Dog
cars:
- Volvo
- Skoda
```
Block and inline can be combined:
```neon
pets: [Cat, Dog]
cars:
- Volvo
- Skoda
```
### Strings
Unquoted, single-quoted, or double-quoted:
```neon
- An unquoted string
- 'Single-quoted string'
- "Double-quoted with \t escapes"
```
Quote strings containing: `# " ' , : = - [ ] { } ( )`
Double a quote to include it: `'It''s working'`
Multiline strings with triple quotes:
```neon
'''
first line
second line
third line
'''
```
### Special Values
```neon
# Numbers
count: 12
price: 12.3
scientific: +1.2e-34
binary: 0b11010
octal: 0o666
hex: 0x7A
# Null
value: null
empty:
# Booleans
enabled: true
disabled: false
active: yes
inactive: no
# Dates (auto-converted to DateTimeImmutable)
date: 2016-06-03
datetime: 2016-06-03 19:00:00
with_tz: 2016-06-03 19:00:00 +02:00
```
### Entities
Function-like structures for DI configuration:
```neon
Column(type: int, nulls: yes)
```
Chained entities:
```neon
Column(type: int) Field(id: 1)
```
Multiline entity:
```neon
Column(
type: int
nulls: yes
)
```
### Comments
```neon
# This line is ignored
street: 742 Evergreen Terrace # inline comment
```
### Block vs Inline Notation
Use **inline** for short, simple values (up to ~3 items):
```neon
extensions: [foo, bar]
roles: {admin: true, user: false}
```
Use **block** for anything complex, nested, or long:
```neon
services:
- App\Model\UserService
- App\Model\OrderService
```
### Key Rules
- Space after `:` is required (`key: value`, not `key:value`)
- Use **tabs** for indentation (not spaces – unlike YAML)
- Block notation cannot be nested inside inline notation
- Unquoted strings cannot start/end with spaces or look like numbers/booleans/dates
## PHP API
```php
use Nette\Neon\Neon;
```
### encode(mixed $value, bool $blockMode=false, string $indentation="\t"): string
Converts PHP value to NEON. Pass `true` to `$blockMode` for multiline output.
```php
Neon::encode($value); // inline NEON
Neon::encode($value, true); // multiline NEON
```
### decode(string $neon): mixed
Parses NEON string to PHP value. Dates become `DateTimeImmutable`, entities become `Nette\Neon\Entity`.
```php
Neon::decode('hello: world'); // ['hello' => 'world']
```
### decodeFile(string $file): mixed
Parses NEON file to PHP value (removes BOM).
```php
Neon::decodeFile('config.neon');
```
All methods throw `Nette\Neon\Exception` on error.
### Lint Command
Check syntax errors in `.neon` files:
```shell
vendor/bin/neon-lint <path>
```
### Online Documentation
For detailed information, use WebFetch on these URLs:
- [NEON Format](https://ne-on.org) – complete NEON specification and examples
Related in Writing & Docs
jax-development
IncludedUse this skill when the user is writing, debugging, profiling, refactoring, reviewing, benchmarking, parallelising, exporting, or explaining JAX code, or when they mention JAX, jax.numpy, jit, grad, value_and_grad, vmap, scan, lax, random keys, pytrees, jax.Array, sharding, Mesh, PartitionSpec, NamedSharding, pmap, shard_map, Pallas, XLA, StableHLO, checkify, profiler, or the JAX repo. It helps turn NumPy or PyTorch-style code into pure functional JAX, fix tracer/control-flow/shape/PRNG bugs, remove recompiles and host-device syncs, choose transforms and sharding strategies, inspect jaxpr/lowering/IR, and benchmark compiled code correctly.
nature-article-writer
IncludedDrafts, rewrites, diagnostically critiques, and style-calibrates primary research manuscripts for Nature and Nature Portfolio journals. Use when the user wants a Nature-style title, summary paragraph or abstract, introduction, results, discussion, methods, figure legends, presubmission enquiry, cover letter, reviewer response, or when a scientific draft sounds generic, jargon-heavy, structurally weak, or AI-ish and needs precise, broad-reader-friendly prose without inventing data, analyses, or references. Best for primary research articles and letters rather than reviews or press releases unless explicitly adapting one.
deckrd
IncludedDocument-driven framework that derives requirements, specifications, implementation plans, and executable tasks from goals through structured AI dialogue. Use when user says "write requirements", "create spec", "plan implementation", "derive tasks", "structure this feature", "break down into tasks", or "document this module". Also use for reverse engineering existing code into docs (/deckrd rev). Do NOT use for direct code writing — use /deckrd-coder after tasks are generated. Do NOT use when the user only wants to run or fix existing code without planning.
clinical-decision-support
IncludedGenerate professional clinical decision support (CDS) documents for pharmaceutical and clinical research settings, including patient cohort analyses (biomarker-stratified with outcomes) and treatment recommendation reports (evidence-based guidelines with decision algorithms). Supports GRADE evidence grading, statistical analysis (hazard ratios, survival curves, waterfall plots), biomarker integration, and regulatory compliance. Outputs publication-ready LaTeX/PDF format optimized for drug development, clinical research, and evidence synthesis.
handling-sf-data
IncludedSalesforce data operations with 130-point scoring. Use this skill to create, update, delete, bulk import/export, generate test data, and clean up org records using sf CLI and anonymous Apex. TRIGGER when: user creates test data, performs bulk import/export, uses sf data CLI commands, needs data factory patterns for Apex tests, or needs to seed/clean records in a Salesforce org. DO NOT TRIGGER when: SOQL query writing only (use querying-soql), Apex test execution (use running-apex-tests), or metadata deployment (use deploying-metadata).
accelint-ac-to-playwright
IncludedConvert and validate acceptance criteria for Playwright test automation. Use when user asks to (1) review/evaluate/check if AC are ready for automation, (2) assess if AC can be converted as-is, (3) validate AC quality for Playwright, (4) turn AC into tests, (5) generate tests from acceptance criteria, (6) convert .md bullets or .feature Gherkin files to Playwright specs, (7) create test automation from requirements. Handles both bullet-style markdown and Gherkin syntax with JSON test plan generation and validation.