ac-framework 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +8 -4
- package/bin/postinstall.js +23 -0
- package/framework/.agent/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.agent/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.agent/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.agent/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.agent/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.agent/skills/brainstorming/SKILL.md +54 -0
- package/framework/.agent/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.agent/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.agent/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.agent/skills/interface-design/SKILL.md +310 -0
- package/framework/.agent/skills/interface-design/references/example.md +86 -0
- package/framework/.agent/skills/interface-design/references/principles.md +235 -0
- package/framework/.agent/skills/interface-design/references/validation.md +48 -0
- package/framework/.agent/skills/project-index/SKILL.md +234 -0
- package/framework/.agent/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.agent/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.agent/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.agent/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.agent/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.agent/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.agent/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.agent/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.agent/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.amazonq/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.amazonq/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.amazonq/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.amazonq/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.amazonq/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.amazonq/skills/brainstorming/SKILL.md +54 -0
- package/framework/.amazonq/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.amazonq/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.amazonq/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.amazonq/skills/interface-design/SKILL.md +310 -0
- package/framework/.amazonq/skills/interface-design/references/example.md +86 -0
- package/framework/.amazonq/skills/interface-design/references/principles.md +235 -0
- package/framework/.amazonq/skills/interface-design/references/validation.md +48 -0
- package/framework/.amazonq/skills/project-index/SKILL.md +234 -0
- package/framework/.amazonq/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.amazonq/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.amazonq/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.amazonq/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.amazonq/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.amazonq/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.amazonq/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.amazonq/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.amazonq/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.augment/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.augment/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.augment/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.augment/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.augment/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.augment/skills/brainstorming/SKILL.md +54 -0
- package/framework/.augment/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.augment/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.augment/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.augment/skills/interface-design/SKILL.md +310 -0
- package/framework/.augment/skills/interface-design/references/example.md +86 -0
- package/framework/.augment/skills/interface-design/references/principles.md +235 -0
- package/framework/.augment/skills/interface-design/references/validation.md +48 -0
- package/framework/.augment/skills/project-index/SKILL.md +234 -0
- package/framework/.augment/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.augment/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.augment/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.augment/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.augment/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.augment/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.augment/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.augment/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.augment/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.claude/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.claude/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.claude/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.claude/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.claude/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.claude/skills/brainstorming/SKILL.md +54 -0
- package/framework/.claude/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.claude/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.claude/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.claude/skills/interface-design/SKILL.md +310 -0
- package/framework/.claude/skills/interface-design/references/example.md +86 -0
- package/framework/.claude/skills/interface-design/references/principles.md +235 -0
- package/framework/.claude/skills/interface-design/references/validation.md +48 -0
- package/framework/.claude/skills/project-index/SKILL.md +234 -0
- package/framework/.claude/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.claude/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.claude/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.claude/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.claude/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.claude/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.claude/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.claude/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.claude/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.cline/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.cline/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.cline/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.cline/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.cline/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.cline/skills/brainstorming/SKILL.md +54 -0
- package/framework/.cline/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.cline/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.cline/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.cline/skills/interface-design/SKILL.md +310 -0
- package/framework/.cline/skills/interface-design/references/example.md +86 -0
- package/framework/.cline/skills/interface-design/references/principles.md +235 -0
- package/framework/.cline/skills/interface-design/references/validation.md +48 -0
- package/framework/.cline/skills/project-index/SKILL.md +234 -0
- package/framework/.cline/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.cline/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.cline/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.cline/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.cline/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.cline/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.cline/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.cline/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.cline/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.codebuddy/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.codebuddy/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.codebuddy/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.codebuddy/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.codebuddy/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.codebuddy/skills/brainstorming/SKILL.md +54 -0
- package/framework/.codebuddy/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.codebuddy/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.codebuddy/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.codebuddy/skills/interface-design/SKILL.md +310 -0
- package/framework/.codebuddy/skills/interface-design/references/example.md +86 -0
- package/framework/.codebuddy/skills/interface-design/references/principles.md +235 -0
- package/framework/.codebuddy/skills/interface-design/references/validation.md +48 -0
- package/framework/.codebuddy/skills/project-index/SKILL.md +234 -0
- package/framework/.codebuddy/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.codebuddy/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.codebuddy/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.codebuddy/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.codebuddy/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.codebuddy/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.codebuddy/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.codebuddy/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.codebuddy/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.codex/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.codex/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.codex/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.codex/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.codex/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.codex/skills/brainstorming/SKILL.md +54 -0
- package/framework/.codex/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.codex/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.codex/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.codex/skills/interface-design/SKILL.md +310 -0
- package/framework/.codex/skills/interface-design/references/example.md +86 -0
- package/framework/.codex/skills/interface-design/references/principles.md +235 -0
- package/framework/.codex/skills/interface-design/references/validation.md +48 -0
- package/framework/.codex/skills/project-index/SKILL.md +234 -0
- package/framework/.codex/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.codex/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.codex/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.codex/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.codex/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.codex/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.codex/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.codex/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.codex/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.continue/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.continue/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.continue/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.continue/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.continue/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.continue/skills/brainstorming/SKILL.md +54 -0
- package/framework/.continue/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.continue/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.continue/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.continue/skills/interface-design/SKILL.md +310 -0
- package/framework/.continue/skills/interface-design/references/example.md +86 -0
- package/framework/.continue/skills/interface-design/references/principles.md +235 -0
- package/framework/.continue/skills/interface-design/references/validation.md +48 -0
- package/framework/.continue/skills/project-index/SKILL.md +234 -0
- package/framework/.continue/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.continue/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.continue/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.continue/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.continue/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.continue/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.continue/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.continue/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.continue/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.cospec/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.cospec/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.cospec/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.cospec/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.cospec/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.cospec/skills/brainstorming/SKILL.md +54 -0
- package/framework/.cospec/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.cospec/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.cospec/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.cospec/skills/interface-design/SKILL.md +310 -0
- package/framework/.cospec/skills/interface-design/references/example.md +86 -0
- package/framework/.cospec/skills/interface-design/references/principles.md +235 -0
- package/framework/.cospec/skills/interface-design/references/validation.md +48 -0
- package/framework/.cospec/skills/project-index/SKILL.md +234 -0
- package/framework/.cospec/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.cospec/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.cospec/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.cospec/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.cospec/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.cospec/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.cospec/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.cospec/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.cospec/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.crush/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.crush/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.crush/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.crush/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.crush/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.crush/skills/brainstorming/SKILL.md +54 -0
- package/framework/.crush/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.crush/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.crush/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.crush/skills/interface-design/SKILL.md +310 -0
- package/framework/.crush/skills/interface-design/references/example.md +86 -0
- package/framework/.crush/skills/interface-design/references/principles.md +235 -0
- package/framework/.crush/skills/interface-design/references/validation.md +48 -0
- package/framework/.crush/skills/project-index/SKILL.md +234 -0
- package/framework/.crush/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.crush/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.crush/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.crush/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.crush/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.crush/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.crush/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.crush/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.crush/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.cursor/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.cursor/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.cursor/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.cursor/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.cursor/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.cursor/skills/brainstorming/SKILL.md +54 -0
- package/framework/.cursor/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.cursor/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.cursor/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.cursor/skills/interface-design/SKILL.md +310 -0
- package/framework/.cursor/skills/interface-design/references/example.md +86 -0
- package/framework/.cursor/skills/interface-design/references/principles.md +235 -0
- package/framework/.cursor/skills/interface-design/references/validation.md +48 -0
- package/framework/.cursor/skills/project-index/SKILL.md +234 -0
- package/framework/.cursor/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.cursor/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.cursor/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.cursor/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.cursor/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.cursor/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.cursor/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.cursor/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.cursor/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.factory/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.factory/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.factory/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.factory/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.factory/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.factory/skills/brainstorming/SKILL.md +54 -0
- package/framework/.factory/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.factory/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.factory/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.factory/skills/interface-design/SKILL.md +310 -0
- package/framework/.factory/skills/interface-design/references/example.md +86 -0
- package/framework/.factory/skills/interface-design/references/principles.md +235 -0
- package/framework/.factory/skills/interface-design/references/validation.md +48 -0
- package/framework/.factory/skills/project-index/SKILL.md +234 -0
- package/framework/.factory/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.factory/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.factory/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.factory/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.factory/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.factory/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.factory/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.factory/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.factory/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.gemini/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.gemini/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.gemini/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.gemini/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.gemini/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.gemini/skills/brainstorming/SKILL.md +54 -0
- package/framework/.gemini/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.gemini/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.gemini/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.gemini/skills/interface-design/SKILL.md +310 -0
- package/framework/.gemini/skills/interface-design/references/example.md +86 -0
- package/framework/.gemini/skills/interface-design/references/principles.md +235 -0
- package/framework/.gemini/skills/interface-design/references/validation.md +48 -0
- package/framework/.gemini/skills/project-index/SKILL.md +234 -0
- package/framework/.gemini/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.gemini/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.gemini/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.gemini/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.gemini/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.gemini/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.gemini/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.gemini/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.gemini/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.github/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.github/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.github/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.github/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.github/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.github/skills/brainstorming/SKILL.md +54 -0
- package/framework/.github/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.github/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.github/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.github/skills/interface-design/SKILL.md +310 -0
- package/framework/.github/skills/interface-design/references/example.md +86 -0
- package/framework/.github/skills/interface-design/references/principles.md +235 -0
- package/framework/.github/skills/interface-design/references/validation.md +48 -0
- package/framework/.github/skills/project-index/SKILL.md +234 -0
- package/framework/.github/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.github/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.github/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.github/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.github/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.github/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.github/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.github/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.github/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.iflow/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.iflow/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.iflow/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.iflow/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.iflow/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.iflow/skills/brainstorming/SKILL.md +54 -0
- package/framework/.iflow/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.iflow/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.iflow/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.iflow/skills/interface-design/SKILL.md +310 -0
- package/framework/.iflow/skills/interface-design/references/example.md +86 -0
- package/framework/.iflow/skills/interface-design/references/principles.md +235 -0
- package/framework/.iflow/skills/interface-design/references/validation.md +48 -0
- package/framework/.iflow/skills/project-index/SKILL.md +234 -0
- package/framework/.iflow/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.iflow/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.iflow/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.iflow/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.iflow/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.iflow/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.iflow/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.iflow/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.iflow/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.kilocode/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.kilocode/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.kilocode/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.kilocode/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.kilocode/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.kilocode/skills/brainstorming/SKILL.md +54 -0
- package/framework/.kilocode/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.kilocode/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.kilocode/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.kilocode/skills/interface-design/SKILL.md +310 -0
- package/framework/.kilocode/skills/interface-design/references/example.md +86 -0
- package/framework/.kilocode/skills/interface-design/references/principles.md +235 -0
- package/framework/.kilocode/skills/interface-design/references/validation.md +48 -0
- package/framework/.kilocode/skills/project-index/SKILL.md +234 -0
- package/framework/.kilocode/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.kilocode/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.kilocode/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.kilocode/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.kilocode/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.kilocode/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.kilocode/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.kilocode/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.kilocode/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.opencode/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.opencode/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.opencode/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.opencode/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.opencode/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.opencode/skills/brainstorming/SKILL.md +54 -0
- package/framework/.opencode/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.opencode/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.opencode/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.opencode/skills/interface-design/SKILL.md +310 -0
- package/framework/.opencode/skills/interface-design/references/example.md +86 -0
- package/framework/.opencode/skills/interface-design/references/principles.md +235 -0
- package/framework/.opencode/skills/interface-design/references/validation.md +48 -0
- package/framework/.opencode/skills/project-index/SKILL.md +234 -0
- package/framework/.opencode/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.opencode/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.opencode/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.opencode/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.opencode/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.opencode/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.opencode/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.opencode/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.opencode/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.qoder/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.qoder/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.qoder/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.qoder/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.qoder/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.qoder/skills/brainstorming/SKILL.md +54 -0
- package/framework/.qoder/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.qoder/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.qoder/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.qoder/skills/interface-design/SKILL.md +310 -0
- package/framework/.qoder/skills/interface-design/references/example.md +86 -0
- package/framework/.qoder/skills/interface-design/references/principles.md +235 -0
- package/framework/.qoder/skills/interface-design/references/validation.md +48 -0
- package/framework/.qoder/skills/project-index/SKILL.md +234 -0
- package/framework/.qoder/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.qoder/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.qoder/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.qoder/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.qoder/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.qoder/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.qoder/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.qoder/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.qoder/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.qwen/commands/{opsx-apply.toml → opsx-apply.md} +4 -3
- package/framework/.qwen/commands/{opsx-archive.toml → opsx-archive.md} +4 -3
- package/framework/.qwen/commands/{opsx-bulk-archive.toml → opsx-bulk-archive.md} +4 -3
- package/framework/.qwen/commands/{opsx-continue.toml → opsx-continue.md} +4 -3
- package/framework/.qwen/commands/{opsx-explore.toml → opsx-explore.md} +4 -3
- package/framework/.qwen/commands/{opsx-ff.toml → opsx-ff.md} +4 -3
- package/framework/.qwen/commands/{opsx-new.toml → opsx-new.md} +4 -3
- package/framework/.qwen/commands/{opsx-onboard.toml → opsx-onboard.md} +4 -3
- package/framework/.qwen/commands/{opsx-sync.toml → opsx-sync.md} +4 -3
- package/framework/.qwen/commands/{opsx-verify.toml → opsx-verify.md} +4 -3
- package/framework/.qwen/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.qwen/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.qwen/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.qwen/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.qwen/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.qwen/skills/brainstorming/SKILL.md +54 -0
- package/framework/.qwen/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.qwen/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.qwen/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.qwen/skills/interface-design/SKILL.md +310 -0
- package/framework/.qwen/skills/interface-design/references/example.md +86 -0
- package/framework/.qwen/skills/interface-design/references/principles.md +235 -0
- package/framework/.qwen/skills/interface-design/references/validation.md +48 -0
- package/framework/.qwen/skills/project-index/SKILL.md +234 -0
- package/framework/.qwen/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.qwen/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.qwen/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.qwen/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.qwen/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.qwen/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.qwen/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.qwen/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.qwen/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.roo/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.roo/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.roo/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.roo/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.roo/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.roo/skills/brainstorming/SKILL.md +54 -0
- package/framework/.roo/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.roo/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.roo/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.roo/skills/interface-design/SKILL.md +310 -0
- package/framework/.roo/skills/interface-design/references/example.md +86 -0
- package/framework/.roo/skills/interface-design/references/principles.md +235 -0
- package/framework/.roo/skills/interface-design/references/validation.md +48 -0
- package/framework/.roo/skills/project-index/SKILL.md +234 -0
- package/framework/.roo/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.roo/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.roo/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.roo/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.roo/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.roo/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.roo/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.roo/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.roo/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.trae/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.trae/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.trae/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.trae/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.trae/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.trae/skills/brainstorming/SKILL.md +54 -0
- package/framework/.trae/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.trae/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.trae/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.trae/skills/interface-design/SKILL.md +310 -0
- package/framework/.trae/skills/interface-design/references/example.md +86 -0
- package/framework/.trae/skills/interface-design/references/principles.md +235 -0
- package/framework/.trae/skills/interface-design/references/validation.md +48 -0
- package/framework/.trae/skills/project-index/SKILL.md +234 -0
- package/framework/.trae/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.trae/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.trae/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.trae/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.trae/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.trae/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.trae/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.trae/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.trae/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/.windsurf/skills/api-design-principles/SKILL.md +528 -0
- package/framework/.windsurf/skills/api-design-principles/assets/api-design-checklist.md +155 -0
- package/framework/.windsurf/skills/api-design-principles/assets/rest-api-template.py +182 -0
- package/framework/.windsurf/skills/api-design-principles/references/graphql-schema-design.md +583 -0
- package/framework/.windsurf/skills/api-design-principles/references/rest-best-practices.md +408 -0
- package/framework/.windsurf/skills/brainstorming/SKILL.md +54 -0
- package/framework/.windsurf/skills/changelog-generator/SKILL.md +104 -0
- package/framework/.windsurf/skills/code-maintainability/SKILL.md +1108 -0
- package/framework/.windsurf/skills/error-handling-patterns/SKILL.md +641 -0
- package/framework/.windsurf/skills/interface-design/SKILL.md +310 -0
- package/framework/.windsurf/skills/interface-design/references/example.md +86 -0
- package/framework/.windsurf/skills/interface-design/references/principles.md +235 -0
- package/framework/.windsurf/skills/interface-design/references/validation.md +48 -0
- package/framework/.windsurf/skills/project-index/SKILL.md +234 -0
- package/framework/.windsurf/skills/project-index/scripts/scan_codebase.py +47 -0
- package/framework/.windsurf/skills/project-index/templates/agent-template.md +18 -0
- package/framework/.windsurf/skills/project-index/templates/skill-template.md +20 -0
- package/framework/.windsurf/skills/secure-coding-cybersecurity/SKILL.md +793 -0
- package/framework/.windsurf/skills/secure-coding-cybersecurity/references/ai_coding_pitfalls.md +44 -0
- package/framework/.windsurf/skills/secure-coding-cybersecurity/references/owasp_top_10_2025.md +28 -0
- package/framework/.windsurf/skills/secure-coding-cybersecurity/references/secure_coding_examples.md +102 -0
- package/framework/.windsurf/skills/secure-coding-cybersecurity/scripts/security_audit.py +46 -0
- package/framework/.windsurf/skills/systematic-debugging/SKILL.md +296 -0
- package/framework/AGENTS.md +464 -0
- package/framework/CLAUDE.md +464 -0
- package/framework/GEMINI.md +464 -0
- package/framework/QWEN.md +464 -0
- package/framework/copilot-instructions.md +464 -0
- package/package.json +3 -2
- package/src/commands/init.js +2 -1
- package/src/ui/animations.js +36 -11
- package/src/ui/banner.js +6 -6
package/LICENSE
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2024 OpenSpec Contributors
|
|
4
3
|
Copyright © 2026 AF-Framework Contributors
|
|
5
4
|
|
|
6
|
-
This project includes modifications and extensions
|
|
7
|
-
based on the OpenSpec framework.
|
|
8
|
-
|
|
9
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
10
6
|
|
|
11
7
|
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
12
8
|
|
|
13
9
|
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
14
10
|
|
|
11
|
+
(CREDITS)
|
|
12
|
+
This project includes modifications and extensions
|
|
13
|
+
based on the OpenSpec framework.
|
|
14
|
+
Copyright (c) 2024 OpenSpec Contributors
|
|
15
|
+
Copyright (c) 2026 Damola Akinleye
|
|
16
|
+
Copyright (c) 2025 Jesse Vincent
|
|
17
|
+
Copyright (c) 2024 Seth Hobson
|
|
18
|
+
(CREDITS)
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const isWin = process.platform === 'win32';
|
|
4
|
+
|
|
5
|
+
console.log();
|
|
6
|
+
console.log(' ✓ ac-framework installed successfully!');
|
|
7
|
+
console.log();
|
|
8
|
+
console.log(' Get started:');
|
|
9
|
+
console.log(' acfm init');
|
|
10
|
+
console.log();
|
|
11
|
+
|
|
12
|
+
if (isWin) {
|
|
13
|
+
console.log(' ⚠ If "acfm" is not recognized, add npm global bin to your PATH:');
|
|
14
|
+
console.log();
|
|
15
|
+
console.log(' 1. Run: npm config get prefix');
|
|
16
|
+
console.log(' 2. Copy the output path (e.g. C:\\Users\\YourUser\\AppData\\Roaming\\npm)');
|
|
17
|
+
console.log(' 3. Add it to your system PATH:');
|
|
18
|
+
console.log(' - Search "Environment Variables" in Windows Settings');
|
|
19
|
+
console.log(' - Edit "Path" under User variables');
|
|
20
|
+
console.log(' - Add the npm prefix path');
|
|
21
|
+
console.log(' 4. Restart your terminal');
|
|
22
|
+
console.log();
|
|
23
|
+
}
|
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: api-design-principles
|
|
3
|
+
description: Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# API Design Principles
|
|
7
|
+
|
|
8
|
+
Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers and stand the test of time.
|
|
9
|
+
|
|
10
|
+
## When to Use This Skill
|
|
11
|
+
|
|
12
|
+
- Designing new REST or GraphQL APIs
|
|
13
|
+
- Refactoring existing APIs for better usability
|
|
14
|
+
- Establishing API design standards for your team
|
|
15
|
+
- Reviewing API specifications before implementation
|
|
16
|
+
- Migrating between API paradigms (REST to GraphQL, etc.)
|
|
17
|
+
- Creating developer-friendly API documentation
|
|
18
|
+
- Optimizing APIs for specific use cases (mobile, third-party integrations)
|
|
19
|
+
|
|
20
|
+
## Core Concepts
|
|
21
|
+
|
|
22
|
+
### 1. RESTful Design Principles
|
|
23
|
+
|
|
24
|
+
**Resource-Oriented Architecture**
|
|
25
|
+
|
|
26
|
+
- Resources are nouns (users, orders, products), not verbs
|
|
27
|
+
- Use HTTP methods for actions (GET, POST, PUT, PATCH, DELETE)
|
|
28
|
+
- URLs represent resource hierarchies
|
|
29
|
+
- Consistent naming conventions
|
|
30
|
+
|
|
31
|
+
**HTTP Methods Semantics:**
|
|
32
|
+
|
|
33
|
+
- `GET`: Retrieve resources (idempotent, safe)
|
|
34
|
+
- `POST`: Create new resources
|
|
35
|
+
- `PUT`: Replace entire resource (idempotent)
|
|
36
|
+
- `PATCH`: Partial resource updates
|
|
37
|
+
- `DELETE`: Remove resources (idempotent)
|
|
38
|
+
|
|
39
|
+
### 2. GraphQL Design Principles
|
|
40
|
+
|
|
41
|
+
**Schema-First Development**
|
|
42
|
+
|
|
43
|
+
- Types define your domain model
|
|
44
|
+
- Queries for reading data
|
|
45
|
+
- Mutations for modifying data
|
|
46
|
+
- Subscriptions for real-time updates
|
|
47
|
+
|
|
48
|
+
**Query Structure:**
|
|
49
|
+
|
|
50
|
+
- Clients request exactly what they need
|
|
51
|
+
- Single endpoint, multiple operations
|
|
52
|
+
- Strongly typed schema
|
|
53
|
+
- Introspection built-in
|
|
54
|
+
|
|
55
|
+
### 3. API Versioning Strategies
|
|
56
|
+
|
|
57
|
+
**URL Versioning:**
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
/api/v1/users
|
|
61
|
+
/api/v2/users
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
**Header Versioning:**
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
Accept: application/vnd.api+json; version=1
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
**Query Parameter Versioning:**
|
|
71
|
+
|
|
72
|
+
```
|
|
73
|
+
/api/users?version=1
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## REST API Design Patterns
|
|
77
|
+
|
|
78
|
+
### Pattern 1: Resource Collection Design
|
|
79
|
+
|
|
80
|
+
```python
|
|
81
|
+
# Good: Resource-oriented endpoints
|
|
82
|
+
GET /api/users # List users (with pagination)
|
|
83
|
+
POST /api/users # Create user
|
|
84
|
+
GET /api/users/{id} # Get specific user
|
|
85
|
+
PUT /api/users/{id} # Replace user
|
|
86
|
+
PATCH /api/users/{id} # Update user fields
|
|
87
|
+
DELETE /api/users/{id} # Delete user
|
|
88
|
+
|
|
89
|
+
# Nested resources
|
|
90
|
+
GET /api/users/{id}/orders # Get user's orders
|
|
91
|
+
POST /api/users/{id}/orders # Create order for user
|
|
92
|
+
|
|
93
|
+
# Bad: Action-oriented endpoints (avoid)
|
|
94
|
+
POST /api/createUser
|
|
95
|
+
POST /api/getUserById
|
|
96
|
+
POST /api/deleteUser
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Pattern 2: Pagination and Filtering
|
|
100
|
+
|
|
101
|
+
```python
|
|
102
|
+
from typing import List, Optional
|
|
103
|
+
from pydantic import BaseModel, Field
|
|
104
|
+
|
|
105
|
+
class PaginationParams(BaseModel):
|
|
106
|
+
page: int = Field(1, ge=1, description="Page number")
|
|
107
|
+
page_size: int = Field(20, ge=1, le=100, description="Items per page")
|
|
108
|
+
|
|
109
|
+
class FilterParams(BaseModel):
|
|
110
|
+
status: Optional[str] = None
|
|
111
|
+
created_after: Optional[str] = None
|
|
112
|
+
search: Optional[str] = None
|
|
113
|
+
|
|
114
|
+
class PaginatedResponse(BaseModel):
|
|
115
|
+
items: List[dict]
|
|
116
|
+
total: int
|
|
117
|
+
page: int
|
|
118
|
+
page_size: int
|
|
119
|
+
pages: int
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def has_next(self) -> bool:
|
|
123
|
+
return self.page < self.pages
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def has_prev(self) -> bool:
|
|
127
|
+
return self.page > 1
|
|
128
|
+
|
|
129
|
+
# FastAPI endpoint example
|
|
130
|
+
from fastapi import FastAPI, Query, Depends
|
|
131
|
+
|
|
132
|
+
app = FastAPI()
|
|
133
|
+
|
|
134
|
+
@app.get("/api/users", response_model=PaginatedResponse)
|
|
135
|
+
async def list_users(
|
|
136
|
+
page: int = Query(1, ge=1),
|
|
137
|
+
page_size: int = Query(20, ge=1, le=100),
|
|
138
|
+
status: Optional[str] = Query(None),
|
|
139
|
+
search: Optional[str] = Query(None)
|
|
140
|
+
):
|
|
141
|
+
# Apply filters
|
|
142
|
+
query = build_query(status=status, search=search)
|
|
143
|
+
|
|
144
|
+
# Count total
|
|
145
|
+
total = await count_users(query)
|
|
146
|
+
|
|
147
|
+
# Fetch page
|
|
148
|
+
offset = (page - 1) * page_size
|
|
149
|
+
users = await fetch_users(query, limit=page_size, offset=offset)
|
|
150
|
+
|
|
151
|
+
return PaginatedResponse(
|
|
152
|
+
items=users,
|
|
153
|
+
total=total,
|
|
154
|
+
page=page,
|
|
155
|
+
page_size=page_size,
|
|
156
|
+
pages=(total + page_size - 1) // page_size
|
|
157
|
+
)
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
### Pattern 3: Error Handling and Status Codes
|
|
161
|
+
|
|
162
|
+
```python
|
|
163
|
+
from fastapi import HTTPException, status
|
|
164
|
+
from pydantic import BaseModel
|
|
165
|
+
|
|
166
|
+
class ErrorResponse(BaseModel):
|
|
167
|
+
error: str
|
|
168
|
+
message: str
|
|
169
|
+
details: Optional[dict] = None
|
|
170
|
+
timestamp: str
|
|
171
|
+
path: str
|
|
172
|
+
|
|
173
|
+
class ValidationErrorDetail(BaseModel):
|
|
174
|
+
field: str
|
|
175
|
+
message: str
|
|
176
|
+
value: Any
|
|
177
|
+
|
|
178
|
+
# Consistent error responses
|
|
179
|
+
STATUS_CODES = {
|
|
180
|
+
"success": 200,
|
|
181
|
+
"created": 201,
|
|
182
|
+
"no_content": 204,
|
|
183
|
+
"bad_request": 400,
|
|
184
|
+
"unauthorized": 401,
|
|
185
|
+
"forbidden": 403,
|
|
186
|
+
"not_found": 404,
|
|
187
|
+
"conflict": 409,
|
|
188
|
+
"unprocessable": 422,
|
|
189
|
+
"internal_error": 500
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
def raise_not_found(resource: str, id: str):
|
|
193
|
+
raise HTTPException(
|
|
194
|
+
status_code=status.HTTP_404_NOT_FOUND,
|
|
195
|
+
detail={
|
|
196
|
+
"error": "NotFound",
|
|
197
|
+
"message": f"{resource} not found",
|
|
198
|
+
"details": {"id": id}
|
|
199
|
+
}
|
|
200
|
+
)
|
|
201
|
+
|
|
202
|
+
def raise_validation_error(errors: List[ValidationErrorDetail]):
|
|
203
|
+
raise HTTPException(
|
|
204
|
+
status_code=status.HTTP_422_UNPROCESSABLE_ENTITY,
|
|
205
|
+
detail={
|
|
206
|
+
"error": "ValidationError",
|
|
207
|
+
"message": "Request validation failed",
|
|
208
|
+
"details": {"errors": [e.dict() for e in errors]}
|
|
209
|
+
}
|
|
210
|
+
)
|
|
211
|
+
|
|
212
|
+
# Example usage
|
|
213
|
+
@app.get("/api/users/{user_id}")
|
|
214
|
+
async def get_user(user_id: str):
|
|
215
|
+
user = await fetch_user(user_id)
|
|
216
|
+
if not user:
|
|
217
|
+
raise_not_found("User", user_id)
|
|
218
|
+
return user
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Pattern 4: HATEOAS (Hypermedia as the Engine of Application State)
|
|
222
|
+
|
|
223
|
+
```python
|
|
224
|
+
class UserResponse(BaseModel):
|
|
225
|
+
id: str
|
|
226
|
+
name: str
|
|
227
|
+
email: str
|
|
228
|
+
_links: dict
|
|
229
|
+
|
|
230
|
+
@classmethod
|
|
231
|
+
def from_user(cls, user: User, base_url: str):
|
|
232
|
+
return cls(
|
|
233
|
+
id=user.id,
|
|
234
|
+
name=user.name,
|
|
235
|
+
email=user.email,
|
|
236
|
+
_links={
|
|
237
|
+
"self": {"href": f"{base_url}/api/users/{user.id}"},
|
|
238
|
+
"orders": {"href": f"{base_url}/api/users/{user.id}/orders"},
|
|
239
|
+
"update": {
|
|
240
|
+
"href": f"{base_url}/api/users/{user.id}",
|
|
241
|
+
"method": "PATCH"
|
|
242
|
+
},
|
|
243
|
+
"delete": {
|
|
244
|
+
"href": f"{base_url}/api/users/{user.id}",
|
|
245
|
+
"method": "DELETE"
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
)
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
## GraphQL Design Patterns
|
|
252
|
+
|
|
253
|
+
### Pattern 1: Schema Design
|
|
254
|
+
|
|
255
|
+
```graphql
|
|
256
|
+
# schema.graphql
|
|
257
|
+
|
|
258
|
+
# Clear type definitions
|
|
259
|
+
type User {
|
|
260
|
+
id: ID!
|
|
261
|
+
email: String!
|
|
262
|
+
name: String!
|
|
263
|
+
createdAt: DateTime!
|
|
264
|
+
|
|
265
|
+
# Relationships
|
|
266
|
+
orders(first: Int = 20, after: String, status: OrderStatus): OrderConnection!
|
|
267
|
+
|
|
268
|
+
profile: UserProfile
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
type Order {
|
|
272
|
+
id: ID!
|
|
273
|
+
status: OrderStatus!
|
|
274
|
+
total: Money!
|
|
275
|
+
items: [OrderItem!]!
|
|
276
|
+
createdAt: DateTime!
|
|
277
|
+
|
|
278
|
+
# Back-reference
|
|
279
|
+
user: User!
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
# Pagination pattern (Relay-style)
|
|
283
|
+
type OrderConnection {
|
|
284
|
+
edges: [OrderEdge!]!
|
|
285
|
+
pageInfo: PageInfo!
|
|
286
|
+
totalCount: Int!
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
type OrderEdge {
|
|
290
|
+
node: Order!
|
|
291
|
+
cursor: String!
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
type PageInfo {
|
|
295
|
+
hasNextPage: Boolean!
|
|
296
|
+
hasPreviousPage: Boolean!
|
|
297
|
+
startCursor: String
|
|
298
|
+
endCursor: String
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
# Enums for type safety
|
|
302
|
+
enum OrderStatus {
|
|
303
|
+
PENDING
|
|
304
|
+
CONFIRMED
|
|
305
|
+
SHIPPED
|
|
306
|
+
DELIVERED
|
|
307
|
+
CANCELLED
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
# Custom scalars
|
|
311
|
+
scalar DateTime
|
|
312
|
+
scalar Money
|
|
313
|
+
|
|
314
|
+
# Query root
|
|
315
|
+
type Query {
|
|
316
|
+
user(id: ID!): User
|
|
317
|
+
users(first: Int = 20, after: String, search: String): UserConnection!
|
|
318
|
+
|
|
319
|
+
order(id: ID!): Order
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
# Mutation root
|
|
323
|
+
type Mutation {
|
|
324
|
+
createUser(input: CreateUserInput!): CreateUserPayload!
|
|
325
|
+
updateUser(input: UpdateUserInput!): UpdateUserPayload!
|
|
326
|
+
deleteUser(id: ID!): DeleteUserPayload!
|
|
327
|
+
|
|
328
|
+
createOrder(input: CreateOrderInput!): CreateOrderPayload!
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
# Input types for mutations
|
|
332
|
+
input CreateUserInput {
|
|
333
|
+
email: String!
|
|
334
|
+
name: String!
|
|
335
|
+
password: String!
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
# Payload types for mutations
|
|
339
|
+
type CreateUserPayload {
|
|
340
|
+
user: User
|
|
341
|
+
errors: [Error!]
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
type Error {
|
|
345
|
+
field: String
|
|
346
|
+
message: String!
|
|
347
|
+
}
|
|
348
|
+
```
|
|
349
|
+
|
|
350
|
+
### Pattern 2: Resolver Design
|
|
351
|
+
|
|
352
|
+
```python
|
|
353
|
+
from typing import Optional, List
|
|
354
|
+
from ariadne import QueryType, MutationType, ObjectType
|
|
355
|
+
from dataclasses import dataclass
|
|
356
|
+
|
|
357
|
+
query = QueryType()
|
|
358
|
+
mutation = MutationType()
|
|
359
|
+
user_type = ObjectType("User")
|
|
360
|
+
|
|
361
|
+
@query.field("user")
|
|
362
|
+
async def resolve_user(obj, info, id: str) -> Optional[dict]:
|
|
363
|
+
"""Resolve single user by ID."""
|
|
364
|
+
return await fetch_user_by_id(id)
|
|
365
|
+
|
|
366
|
+
@query.field("users")
|
|
367
|
+
async def resolve_users(
|
|
368
|
+
obj,
|
|
369
|
+
info,
|
|
370
|
+
first: int = 20,
|
|
371
|
+
after: Optional[str] = None,
|
|
372
|
+
search: Optional[str] = None
|
|
373
|
+
) -> dict:
|
|
374
|
+
"""Resolve paginated user list."""
|
|
375
|
+
# Decode cursor
|
|
376
|
+
offset = decode_cursor(after) if after else 0
|
|
377
|
+
|
|
378
|
+
# Fetch users
|
|
379
|
+
users = await fetch_users(
|
|
380
|
+
limit=first + 1, # Fetch one extra to check hasNextPage
|
|
381
|
+
offset=offset,
|
|
382
|
+
search=search
|
|
383
|
+
)
|
|
384
|
+
|
|
385
|
+
# Pagination
|
|
386
|
+
has_next = len(users) > first
|
|
387
|
+
if has_next:
|
|
388
|
+
users = users[:first]
|
|
389
|
+
|
|
390
|
+
edges = [
|
|
391
|
+
{
|
|
392
|
+
"node": user,
|
|
393
|
+
"cursor": encode_cursor(offset + i)
|
|
394
|
+
}
|
|
395
|
+
for i, user in enumerate(users)
|
|
396
|
+
]
|
|
397
|
+
|
|
398
|
+
return {
|
|
399
|
+
"edges": edges,
|
|
400
|
+
"pageInfo": {
|
|
401
|
+
"hasNextPage": has_next,
|
|
402
|
+
"hasPreviousPage": offset > 0,
|
|
403
|
+
"startCursor": edges[0]["cursor"] if edges else None,
|
|
404
|
+
"endCursor": edges[-1]["cursor"] if edges else None
|
|
405
|
+
},
|
|
406
|
+
"totalCount": await count_users(search=search)
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
@user_type.field("orders")
|
|
410
|
+
async def resolve_user_orders(user: dict, info, first: int = 20) -> dict:
|
|
411
|
+
"""Resolve user's orders (N+1 prevention with DataLoader)."""
|
|
412
|
+
# Use DataLoader to batch requests
|
|
413
|
+
loader = info.context["loaders"]["orders_by_user"]
|
|
414
|
+
orders = await loader.load(user["id"])
|
|
415
|
+
|
|
416
|
+
return paginate_orders(orders, first)
|
|
417
|
+
|
|
418
|
+
@mutation.field("createUser")
|
|
419
|
+
async def resolve_create_user(obj, info, input: dict) -> dict:
|
|
420
|
+
"""Create new user."""
|
|
421
|
+
try:
|
|
422
|
+
# Validate input
|
|
423
|
+
validate_user_input(input)
|
|
424
|
+
|
|
425
|
+
# Create user
|
|
426
|
+
user = await create_user(
|
|
427
|
+
email=input["email"],
|
|
428
|
+
name=input["name"],
|
|
429
|
+
password=hash_password(input["password"])
|
|
430
|
+
)
|
|
431
|
+
|
|
432
|
+
return {
|
|
433
|
+
"user": user,
|
|
434
|
+
"errors": []
|
|
435
|
+
}
|
|
436
|
+
except ValidationError as e:
|
|
437
|
+
return {
|
|
438
|
+
"user": None,
|
|
439
|
+
"errors": [{"field": e.field, "message": e.message}]
|
|
440
|
+
}
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
### Pattern 3: DataLoader (N+1 Problem Prevention)
|
|
444
|
+
|
|
445
|
+
```python
|
|
446
|
+
from aiodataloader import DataLoader
|
|
447
|
+
from typing import List, Optional
|
|
448
|
+
|
|
449
|
+
class UserLoader(DataLoader):
|
|
450
|
+
"""Batch load users by ID."""
|
|
451
|
+
|
|
452
|
+
async def batch_load_fn(self, user_ids: List[str]) -> List[Optional[dict]]:
|
|
453
|
+
"""Load multiple users in single query."""
|
|
454
|
+
users = await fetch_users_by_ids(user_ids)
|
|
455
|
+
|
|
456
|
+
# Map results back to input order
|
|
457
|
+
user_map = {user["id"]: user for user in users}
|
|
458
|
+
return [user_map.get(user_id) for user_id in user_ids]
|
|
459
|
+
|
|
460
|
+
class OrdersByUserLoader(DataLoader):
|
|
461
|
+
"""Batch load orders by user ID."""
|
|
462
|
+
|
|
463
|
+
async def batch_load_fn(self, user_ids: List[str]) -> List[List[dict]]:
|
|
464
|
+
"""Load orders for multiple users in single query."""
|
|
465
|
+
orders = await fetch_orders_by_user_ids(user_ids)
|
|
466
|
+
|
|
467
|
+
# Group orders by user_id
|
|
468
|
+
orders_by_user = {}
|
|
469
|
+
for order in orders:
|
|
470
|
+
user_id = order["user_id"]
|
|
471
|
+
if user_id not in orders_by_user:
|
|
472
|
+
orders_by_user[user_id] = []
|
|
473
|
+
orders_by_user[user_id].append(order)
|
|
474
|
+
|
|
475
|
+
# Return in input order
|
|
476
|
+
return [orders_by_user.get(user_id, []) for user_id in user_ids]
|
|
477
|
+
|
|
478
|
+
# Context setup
|
|
479
|
+
def create_context():
|
|
480
|
+
return {
|
|
481
|
+
"loaders": {
|
|
482
|
+
"user": UserLoader(),
|
|
483
|
+
"orders_by_user": OrdersByUserLoader()
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
```
|
|
487
|
+
|
|
488
|
+
## Best Practices
|
|
489
|
+
|
|
490
|
+
### REST APIs
|
|
491
|
+
|
|
492
|
+
1. **Consistent Naming**: Use plural nouns for collections (`/users`, not `/user`)
|
|
493
|
+
2. **Stateless**: Each request contains all necessary information
|
|
494
|
+
3. **Use HTTP Status Codes Correctly**: 2xx success, 4xx client errors, 5xx server errors
|
|
495
|
+
4. **Version Your API**: Plan for breaking changes from day one
|
|
496
|
+
5. **Pagination**: Always paginate large collections
|
|
497
|
+
6. **Rate Limiting**: Protect your API with rate limits
|
|
498
|
+
7. **Documentation**: Use OpenAPI/Swagger for interactive docs
|
|
499
|
+
|
|
500
|
+
### GraphQL APIs
|
|
501
|
+
|
|
502
|
+
1. **Schema First**: Design schema before writing resolvers
|
|
503
|
+
2. **Avoid N+1**: Use DataLoaders for efficient data fetching
|
|
504
|
+
3. **Input Validation**: Validate at schema and resolver levels
|
|
505
|
+
4. **Error Handling**: Return structured errors in mutation payloads
|
|
506
|
+
5. **Pagination**: Use cursor-based pagination (Relay spec)
|
|
507
|
+
6. **Deprecation**: Use `@deprecated` directive for gradual migration
|
|
508
|
+
7. **Monitoring**: Track query complexity and execution time
|
|
509
|
+
|
|
510
|
+
## Common Pitfalls
|
|
511
|
+
|
|
512
|
+
- **Over-fetching/Under-fetching (REST)**: Fixed in GraphQL but requires DataLoaders
|
|
513
|
+
- **Breaking Changes**: Version APIs or use deprecation strategies
|
|
514
|
+
- **Inconsistent Error Formats**: Standardize error responses
|
|
515
|
+
- **Missing Rate Limits**: APIs without limits are vulnerable to abuse
|
|
516
|
+
- **Poor Documentation**: Undocumented APIs frustrate developers
|
|
517
|
+
- **Ignoring HTTP Semantics**: POST for idempotent operations breaks expectations
|
|
518
|
+
- **Tight Coupling**: API structure shouldn't mirror database schema
|
|
519
|
+
|
|
520
|
+
## Resources
|
|
521
|
+
|
|
522
|
+
- **references/rest-best-practices.md**: Comprehensive REST API design guide
|
|
523
|
+
- **references/graphql-schema-design.md**: GraphQL schema patterns and anti-patterns
|
|
524
|
+
- **references/api-versioning-strategies.md**: Versioning approaches and migration paths
|
|
525
|
+
- **assets/rest-api-template.py**: FastAPI REST API template
|
|
526
|
+
- **assets/graphql-schema-template.graphql**: Complete GraphQL schema example
|
|
527
|
+
- **assets/api-design-checklist.md**: Pre-implementation review checklist
|
|
528
|
+
- **scripts/openapi-generator.py**: Generate OpenAPI specs from code
|