Skip to content

Adonis0123/adonis-skills / .agents/skills/repo-skill-creator

repo-skill-creator

Verified

Create and maintain repository skills for adonis-skills. Use when users ask to scaffold a new skill under skills/, generate agents/openai.yaml, run skill validation, refresh web index data, or standardize the skill authoring workflow.

scripts/test_quick_validate.py

View on GitHub
"""Exercise frontmatter acceptance using real temporary skill files."""

import tempfile
import unittest
from pathlib import Path

import yaml

from quick_validate import validate_skill


class RequiredFieldsTest(unittest.TestCase):
    def check_fields(self, **overrides):
        fields = {
            "name": "example-skill",
            "description": "Validate an existing skill without changing Git state.",
            "metadata": {"author": "test"},
        }
        fields.update(overrides)
        with tempfile.TemporaryDirectory() as directory:
            (Path(directory) / "SKILL.md").write_text(
                "---\n" + yaml.safe_dump(fields) + "---\n\nValidate the skill.\n"
            )
            return validate_skill(directory)

    def test_nonempty_fields_are_accepted(self):
        self.assertTrue(self.check_fields()[0])

    def test_empty_or_wrong_type_fields_are_rejected(self):
        for field in ("name", "description"):
            for value in ("", "  \n\t", None, 123, []):
                with self.subTest(field=field, value=value):
                    self.assertFalse(self.check_fields(**{field: value})[0])

    def test_valid_optional_metadata_is_preserved(self):
        self.assertTrue(self.check_fields(metadata={"author": "test", "version": "1.0"})[0])


if __name__ == "__main__":
    unittest.main()
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 322kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 322kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 322kUpdated Claude CodeCodexVerifiedInstall