hermes-agent/skills/creative
Teknium 983bbe2d40
feat(skills): add design-md skill for Google's DESIGN.md spec (#14876)
* feat(config): make tool output truncation limits configurable

Port from anomalyco/opencode#23770: expose a new `tool_output` config
section so users can tune the hardcoded truncation caps that apply to
terminal output and read_file pagination.

Three knobs under `tool_output`:
- max_bytes (default 50_000) — terminal stdout/stderr cap
- max_lines (default 2000) — read_file pagination cap
- max_line_length (default 2000) — per-line cap in line-numbered view

All three keep their existing hardcoded values as defaults, so behaviour
is unchanged when the section is absent. Power users on big-context
models can raise them; small-context local models can lower them.

Implementation:
- New `tools/tool_output_limits.py` reads the section with defensive
  fallback (missing/invalid values → defaults, never raises).
- `tools/terminal_tool.py` MAX_OUTPUT_CHARS now comes from
  get_max_bytes().
- `tools/file_operations.py` normalize_read_pagination() and
  _add_line_numbers() now pull the limits at call time.
- `hermes_cli/config.py` DEFAULT_CONFIG gains the `tool_output` section
  so `hermes setup` writes defaults into fresh configs.
- Docs page `user-guide/configuration.md` gains a "Tool Output
  Truncation Limits" section with large-context and small-context
  example configs.

Tests (18 new in tests/tools/test_tool_output_limits.py):
- Default resolution with missing / malformed / non-dict config.
- Full and partial user overrides.
- Coercion of bad values (None, negative, wrong type, str int).
- Shortcut accessors delegate correctly.
- DEFAULT_CONFIG exposes the section with the right defaults.
- Integration: normalize_read_pagination clamps to the configured
  max_lines.

* feat(skills): add design-md skill for Google's DESIGN.md spec

Built-in skill under skills/creative/ that teaches the agent to author,
lint, diff, and export DESIGN.md files — Google's open-source
(Apache-2.0) format for describing a visual identity to coding agents.

Covers:
- YAML front matter + markdown body anatomy
- Full token schema (colors, typography, rounded, spacing, components)
- Canonical section order + duplicate-heading rejection
- Component property whitelist + variants-as-siblings pattern
- CLI workflow via 'npx @google/design.md' (lint/diff/export/spec)
- Lint rule reference including WCAG contrast checks
- Common YAML pitfalls (quoted hex, negative dimensions, dotted refs)
- Starter template at templates/starter.md

Package verified live on npm (@google/design.md@0.1.1).
2026-04-23 21:51:19 -07:00
..
architecture-diagram docs(skills): make descriptions self-contained, not cross-dependent 2026-04-16 20:39:55 -07:00
ascii-art fix: overhaul ascii-art skill with working sources (#662) 2026-03-08 18:09:44 -07:00
ascii-video feat(skills): add creative divergence strategies for experimental output 2026-04-09 21:40:16 -04:00
baoyu-comic fix(skills/baoyu-comic): absolute curl paths + clarify-timeout handling (#13775) 2026-04-21 19:35:42 -07:00
baoyu-infographic docs: add PORT_NOTES.md for baoyu-infographic 2026-04-18 12:32:16 -07:00
creative-ideation feat(skills): add creative ideation — constraint-driven project generation 2026-04-11 01:44:36 -04:00
design-md feat(skills): add design-md skill for Google's DESIGN.md spec (#14876) 2026-04-23 21:51:19 -07:00
excalidraw refactor: reorganize skills into sub-categories 2026-03-09 03:35:53 -07:00
manim-video feat(skills): add creative divergence strategies for experimental output 2026-04-09 21:40:16 -04:00
p5js feat(skills): add creative divergence strategies for experimental output 2026-04-09 21:40:16 -04:00
pixel-art feat(pixel-art): add hardware palettes and video animation (#12725) 2026-04-19 16:59:20 -07:00
popular-web-designs feat(skills): add popular-web-designs skill with 54 website design systems (#5194) 2026-04-05 00:42:55 -07:00
songwriting-and-ai-music feat(skills): add songwriting-and-ai-music creative skill (salvage #1901) (#3834) 2026-03-29 17:49:19 -07:00
DESCRIPTION.md refactor: reorganize skills into sub-categories 2026-03-09 03:35:53 -07:00