About faasjs-utils-data
A FaasJS development skill for selecting and using data utilities, from JSON and YAML handling to validation and path checks. It also describes focused testing and handoff checks for utility changes.
Key features
- 01Guidance for choosing portable helpers
- 02JSON parsing and stream pairing
- 03YAML parsing and config loading
- 04Zod validation and type guards
- 05Root-scoped path containment checks
- 06Focused tests and code checks
Use cases
- 01Choosing a helper for a JSON or text payload
- 02Parsing YAML or staged FaasJS config
- 03Validating external data and unknown values
- 04Checking paths before Node-side file access
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ faasjs/ faasjs --skill faasjs-utils-dataAfter installing, type/faasjs-utils-datain Claude Code to confirm it loaded.
Bundled files
References and scripts installed along with SKILL.md.
references/guidelines/json.mdutils.mdvalid.mdyaml.mdDetails
From the project READMEFaasJS Utils And Data
Default Workflow
- Use the smallest helper that matches the payload shape.
- Keep JSON helpers paired with JSON payloads and text helpers paired with text streams.
- Use Zod schemas for external data validation and helper type guards for unknown internal values.
- Use
parseYaml()for direct YAML parsing; useloadConfig()when staged FaasJS config discovery is required. - Validate root-scoped paths before file access in Node-side tooling.
Load These References
- Portable helpers and quick selection rules:
references/guidelines/utils.md. - JSON parsing and JSON stream helpers:
references/guidelines/json.md. - Direct YAML parsing:
references/guidelines/yaml.md. - Zod helpers, object narrowing, schema parsing, and path containment:
references/guidelines/valid.md.
Gotchas
- Do not replace internal control-flow checks with Zod schemas.
objectToStreampairs withstreamToObject;stringToStreampairs withstreamToString.- Use
loadConfig()instead of direct YAML parsing when config staging and merge order matter.
Validation
- Run focused unit tests with
vp test <pattern>for helper behavior changes. - Run
vp check --fixbefore handoff when utility files changed.
Comments
Markdown supported