Skip to content

v1.0.1: Quality, Packaging & skills.sh Readiness - #1

Merged
CodeCrafter98 merged 11 commits into
mainfrom
release/v1.0.1-quality-packaging
Aug 30, 2026
Merged

CodeCrafter98 merged 11 commits into
mainfrom
release/v1.0.1-quality-packaging

Conversation

@CodeCrafter98

Copy link
Copy Markdown
Owner

Description

Implements the complete v1.0.1 Quality & Packaging Patch, making the repository fully ready for distribution through skills.sh / the Vercel skills CLI.

Changes

  • YAML Parser Compatibility: Quoted all YAML frontmatter descriptions.
  • Portable References: Replaced global paths with domain-specific reference files that travel with each skill.
  • Context Duplication: Reduced the duplicated 900-byte "Non-negotiable rules" to a compact "Standalone safety" section (~40% total size reduction).
  • NUI Contract: Hardened nuiFetch to correctly capture and handle timeouts, network errors, HTTP 500s, and JSON parse failures.
  • Expanded Validator: scripts/validate_skills.py now structurally verifies all skills, versions, eval schemas, and python scripts.
  • Installer Improvements: Added --dry-run, --verify, and receipt generation to install.py and install.ps1.
  • CI Enhancements: Added installer smoke tests for Windows and Linux.
  • Community Files: Added CONTRIBUTING.md, SECURITY.md, CHANGELOG.md, and issue/PR templates.
  • Helper Scanners: Improved deterministic scanners in Python with cleaner JSON/text outputs and better logic.

All 43 skills are verified, and regression evals are fully passing.

8 of 43 skills had unquoted descriptions containing colons which caused
YAML strict parser failures in skills.sh CLI (only 35/43 discovered).
Quote all 43 descriptions with single quotes for consistency.
- Replace broken 'references/official-sources.md' path in all 43 skills
  with self-contained reference policies and domain-specific reference
  files that travel with each skill when installed standalone.

- Replace the ~900-byte 'Non-negotiable engineering rules' block
  (duplicated in all 43 skills) with a compact 'Standalone safety'
  section containing only the critical standalone invariants.

- Create portable reference files in skills that need them:
  routing-matrix, security-checklist, performance-checklist,
  nui-contract-pattern, and domain-specific source links.

Before: 143,086 bytes total SKILL.md
After:   86,875 bytes total SKILL.md
Reduction: 56,211 bytes (39.3%)
Largest skill: fivem-security at 2,523 bytes

Full engineering rules remain in AGENTS.md (the constitution).
Each skill retains the 3 most critical standalone invariants.
nuiFetch now catches and normalizes all error cases instead of leaking
exceptions through the Promise<NuiResult<TRes>> contract:

- AbortError (timeout) -> { code: 'timeout' }
- Network failure -> { code: 'network_error' }
- Non-2xx HTTP -> { code: 'http_error' }
- Invalid JSON -> { code: 'invalid_response' }
- Unexpected shape -> { code: 'invalid_response' }

Timeout is always cleared in finally block.
No sensitive implementation details leaked in error messages.
New validator covers:
- Skill structure (frontmatter, name matching, valid characters, duplication)
- YAML strictness (catches unquoted colon descriptions)
- Manifest integrity (1:1 filesystem match, category paths, skill count)
- Version integrity (VERSION == manifest version)
- Portable references (verifies referenced files exist in skill package)
- Python syntax (py_compile all helper scripts)
- Eval validation (JSON, required fields, skill existence, no duplicates)
- Template checks (expected files, no deprecated lua54)

Exits non-zero on any failure with actionable file paths.
- Clean project installation verifies 43 skills installed
- Unrelated existing skill preservation test
- Reinstall without --force skips correctly
- Force mode replaces only matching skills
- Portable references verified after installation
- Root AGENTS.md not overwritten if present
- Windows PowerShell installer smoke test
- skills.sh discovery structure verification (allowed to fail gracefully)
- Add --dry-run flag
- Add --verify flag for post-install validation
- Add --version flag
- Output an installation receipt (.agents/fivem-agent-skills.json)
- Make output summary clearer
- Never destructive to unrelated skills
- PowerShell script gains full feature parity with Python script
- Add skills.sh compatibility badge to README
- Add Quick Start section with npx skills add commands
- Add CONTRIBUTING.md guidelines for new skills and evals
- Add SECURITY.md policy for vulnerability reporting
- Add CHANGELOG.md covering v1.0.0 and v1.0.1
- Add GitHub issue and PR templates
- Add node_modules, coverage, .env, and logs to .gitignore
- Update adapter READMEs to mention skills.sh installation
- Rewrote python scanner scripts to use proper argparse and structural logic
- Added optional --format json/text output to all scanners for better agent consumption
- Improved heuristics in scan_attack_surface.py and scan_hotpaths.py
- Cleaned up output formatting for readability
- Update VERSION and skills-manifest.json to v1.0.1
- Fix 'Reinstall without force skips' to properly check for fivem- prefixed skills instead of stale string 'SKIP existing'
- Strengthen 'skills-discovery' job by executing the real Vercel skills CLI locally using npx to verify discoverability
@CodeCrafter98
CodeCrafter98 merged commit 2212e67 into main Aug 30, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant