Skip to content

me2resh/apexyard / .claude/skills/scaffold

scaffold

Verified

Interview the owner, sized to the project's scale, and generate the project floor from a validated scaffold spec

FileKindSize
SKILL.mdskill md11.5 KB
lib/copy-handbooks.shexecutablescript3.0 KB
lib/generate.shexecutablescript11.4 KB
lib/next-questions.shexecutablescript13.4 KB
lib/validate-spec.shexecutablescript1.9 KB
questions.jsonconfig2.6 KB
rules.jsonconfig3.5 KB
spec.schema.jsonconfig11.3 KB

lib/validate-spec.sh

View on GitHub
#!/usr/bin/env bash
# Validate the closed scaffold schema with jq.
set -eu
[ "$#" -eq 1 ] || { printf 'Usage: validate-spec.sh <spec.json>\n' >&2; exit 2; }
[ -r "$1" ] || { printf 'spec: cannot read file\n' >&2; exit 1; }
schema="$(cd "$(dirname "$0")/.." && pwd)/spec.schema.json"
jq -se --slurpfile schema "$schema" '
  def valid($s):
    . as $v |
    (if $s.type then type == $s.type else true end) and
    (if $s.const then . == $s.const else true end) and
    (if $s.enum then ($s.enum | index($v)) != null else true end) and
    (if $s.minLength then length >= $s.minLength else true end) and
    (if $s.minimum != null then . >= $s.minimum else true end) and
    (if $s.maximum != null then . <= $s.maximum else true end) and
    (if $s.type == "object" then
      (($s.required // []) - keys | length) == 0 and
      (if $s.additionalProperties == false then (keys - ($s.properties | keys) | length) == 0 else true end) and
      all(to_entries[]; . as $entry | .value | valid($s.properties[$entry.key])) and
      (if .source == "recommendation" then (.reason | type) == "string" and (.reason | length) > 0 else true end)
    elif $s.type == "array" then all(.[]; valid($s.items)) and
      (if $s.uniqueItems then length == (unique | length) else true end)
    else true end);
  def calendar:
    (.createdAt | capture("^(?<y>[0-9]{4})-(?<m>[0-9]{2})-(?<d>[0-9]{2})") | map_values(tonumber)) as $date |
    $date.d <= ([31,(if ($date.y % 4 == 0 and ($date.y % 100 != 0 or $date.y % 400 == 0)) then 29 else 28 end),31,30,31,30,31,31,30,31,30,31][$date.m - 1]);
  length == 1 and (.[0] | valid($schema[0]) and
    (.answers.scale == null or .answers.scale.value == .scale) and
    (.createdAt | test("^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):[0-5][0-9]:[0-5][0-9](\\.[0-9]+)?(Z|[+-]([01][0-9]|2[0-3]):[0-5][0-9])$")) and calendar)
' "$1" >/dev/null 2>&1 || { printf 'spec: invalid field, source, value, reason, or date-time\n' >&2; exit 1; }
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 194kUpdated Claude CodeCodexVerifiedInstall