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
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
# API Design Checklist
|
|
2
|
+
|
|
3
|
+
## Pre-Implementation Review
|
|
4
|
+
|
|
5
|
+
### Resource Design
|
|
6
|
+
|
|
7
|
+
- [ ] Resources are nouns, not verbs
|
|
8
|
+
- [ ] Plural names for collections
|
|
9
|
+
- [ ] Consistent naming across all endpoints
|
|
10
|
+
- [ ] Clear resource hierarchy (avoid deep nesting >2 levels)
|
|
11
|
+
- [ ] All CRUD operations properly mapped to HTTP methods
|
|
12
|
+
|
|
13
|
+
### HTTP Methods
|
|
14
|
+
|
|
15
|
+
- [ ] GET for retrieval (safe, idempotent)
|
|
16
|
+
- [ ] POST for creation
|
|
17
|
+
- [ ] PUT for full replacement (idempotent)
|
|
18
|
+
- [ ] PATCH for partial updates
|
|
19
|
+
- [ ] DELETE for removal (idempotent)
|
|
20
|
+
|
|
21
|
+
### Status Codes
|
|
22
|
+
|
|
23
|
+
- [ ] 200 OK for successful GET/PATCH/PUT
|
|
24
|
+
- [ ] 201 Created for POST
|
|
25
|
+
- [ ] 204 No Content for DELETE
|
|
26
|
+
- [ ] 400 Bad Request for malformed requests
|
|
27
|
+
- [ ] 401 Unauthorized for missing auth
|
|
28
|
+
- [ ] 403 Forbidden for insufficient permissions
|
|
29
|
+
- [ ] 404 Not Found for missing resources
|
|
30
|
+
- [ ] 422 Unprocessable Entity for validation errors
|
|
31
|
+
- [ ] 429 Too Many Requests for rate limiting
|
|
32
|
+
- [ ] 500 Internal Server Error for server issues
|
|
33
|
+
|
|
34
|
+
### Pagination
|
|
35
|
+
|
|
36
|
+
- [ ] All collection endpoints paginated
|
|
37
|
+
- [ ] Default page size defined (e.g., 20)
|
|
38
|
+
- [ ] Maximum page size enforced (e.g., 100)
|
|
39
|
+
- [ ] Pagination metadata included (total, pages, etc.)
|
|
40
|
+
- [ ] Cursor-based or offset-based pattern chosen
|
|
41
|
+
|
|
42
|
+
### Filtering & Sorting
|
|
43
|
+
|
|
44
|
+
- [ ] Query parameters for filtering
|
|
45
|
+
- [ ] Sort parameter supported
|
|
46
|
+
- [ ] Search parameter for full-text search
|
|
47
|
+
- [ ] Field selection supported (sparse fieldsets)
|
|
48
|
+
|
|
49
|
+
### Versioning
|
|
50
|
+
|
|
51
|
+
- [ ] Versioning strategy defined (URL/header/query)
|
|
52
|
+
- [ ] Version included in all endpoints
|
|
53
|
+
- [ ] Deprecation policy documented
|
|
54
|
+
|
|
55
|
+
### Error Handling
|
|
56
|
+
|
|
57
|
+
- [ ] Consistent error response format
|
|
58
|
+
- [ ] Detailed error messages
|
|
59
|
+
- [ ] Field-level validation errors
|
|
60
|
+
- [ ] Error codes for client handling
|
|
61
|
+
- [ ] Timestamps in error responses
|
|
62
|
+
|
|
63
|
+
### Authentication & Authorization
|
|
64
|
+
|
|
65
|
+
- [ ] Authentication method defined (Bearer token, API key)
|
|
66
|
+
- [ ] Authorization checks on all endpoints
|
|
67
|
+
- [ ] 401 vs 403 used correctly
|
|
68
|
+
- [ ] Token expiration handled
|
|
69
|
+
|
|
70
|
+
### Rate Limiting
|
|
71
|
+
|
|
72
|
+
- [ ] Rate limits defined per endpoint/user
|
|
73
|
+
- [ ] Rate limit headers included
|
|
74
|
+
- [ ] 429 status code for exceeded limits
|
|
75
|
+
- [ ] Retry-After header provided
|
|
76
|
+
|
|
77
|
+
### Documentation
|
|
78
|
+
|
|
79
|
+
- [ ] OpenAPI/Swagger spec generated
|
|
80
|
+
- [ ] All endpoints documented
|
|
81
|
+
- [ ] Request/response examples provided
|
|
82
|
+
- [ ] Error responses documented
|
|
83
|
+
- [ ] Authentication flow documented
|
|
84
|
+
|
|
85
|
+
### Testing
|
|
86
|
+
|
|
87
|
+
- [ ] Unit tests for business logic
|
|
88
|
+
- [ ] Integration tests for endpoints
|
|
89
|
+
- [ ] Error scenarios tested
|
|
90
|
+
- [ ] Edge cases covered
|
|
91
|
+
- [ ] Performance tests for heavy endpoints
|
|
92
|
+
|
|
93
|
+
### Security
|
|
94
|
+
|
|
95
|
+
- [ ] Input validation on all fields
|
|
96
|
+
- [ ] SQL injection prevention
|
|
97
|
+
- [ ] XSS prevention
|
|
98
|
+
- [ ] CORS configured correctly
|
|
99
|
+
- [ ] HTTPS enforced
|
|
100
|
+
- [ ] Sensitive data not in URLs
|
|
101
|
+
- [ ] No secrets in responses
|
|
102
|
+
|
|
103
|
+
### Performance
|
|
104
|
+
|
|
105
|
+
- [ ] Database queries optimized
|
|
106
|
+
- [ ] N+1 queries prevented
|
|
107
|
+
- [ ] Caching strategy defined
|
|
108
|
+
- [ ] Cache headers set appropriately
|
|
109
|
+
- [ ] Large responses paginated
|
|
110
|
+
|
|
111
|
+
### Monitoring
|
|
112
|
+
|
|
113
|
+
- [ ] Logging implemented
|
|
114
|
+
- [ ] Error tracking configured
|
|
115
|
+
- [ ] Performance metrics collected
|
|
116
|
+
- [ ] Health check endpoint available
|
|
117
|
+
- [ ] Alerts configured for errors
|
|
118
|
+
|
|
119
|
+
## GraphQL-Specific Checks
|
|
120
|
+
|
|
121
|
+
### Schema Design
|
|
122
|
+
|
|
123
|
+
- [ ] Schema-first approach used
|
|
124
|
+
- [ ] Types properly defined
|
|
125
|
+
- [ ] Non-null vs nullable decided
|
|
126
|
+
- [ ] Interfaces/unions used appropriately
|
|
127
|
+
- [ ] Custom scalars defined
|
|
128
|
+
|
|
129
|
+
### Queries
|
|
130
|
+
|
|
131
|
+
- [ ] Query depth limiting
|
|
132
|
+
- [ ] Query complexity analysis
|
|
133
|
+
- [ ] DataLoaders prevent N+1
|
|
134
|
+
- [ ] Pagination pattern chosen (Relay/offset)
|
|
135
|
+
|
|
136
|
+
### Mutations
|
|
137
|
+
|
|
138
|
+
- [ ] Input types defined
|
|
139
|
+
- [ ] Payload types with errors
|
|
140
|
+
- [ ] Optimistic response support
|
|
141
|
+
- [ ] Idempotency considered
|
|
142
|
+
|
|
143
|
+
### Performance
|
|
144
|
+
|
|
145
|
+
- [ ] DataLoader for all relationships
|
|
146
|
+
- [ ] Query batching enabled
|
|
147
|
+
- [ ] Persisted queries considered
|
|
148
|
+
- [ ] Response caching implemented
|
|
149
|
+
|
|
150
|
+
### Documentation
|
|
151
|
+
|
|
152
|
+
- [ ] All fields documented
|
|
153
|
+
- [ ] Deprecations marked
|
|
154
|
+
- [ ] Examples provided
|
|
155
|
+
- [ ] Schema introspection enabled
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Production-ready REST API template using FastAPI.
|
|
3
|
+
Includes pagination, filtering, error handling, and best practices.
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
from fastapi import FastAPI, HTTPException, Query, Path, Depends, status
|
|
7
|
+
from fastapi.middleware.cors import CORSMiddleware
|
|
8
|
+
from fastapi.middleware.trustedhost import TrustedHostMiddleware
|
|
9
|
+
from fastapi.responses import JSONResponse
|
|
10
|
+
from pydantic import BaseModel, Field, EmailStr, ConfigDict
|
|
11
|
+
from typing import Optional, List, Any
|
|
12
|
+
from datetime import datetime
|
|
13
|
+
from enum import Enum
|
|
14
|
+
|
|
15
|
+
app = FastAPI(
|
|
16
|
+
title="API Template",
|
|
17
|
+
version="1.0.0",
|
|
18
|
+
docs_url="/api/docs"
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
# Security Middleware
|
|
22
|
+
# Trusted Host: Prevents HTTP Host Header attacks
|
|
23
|
+
app.add_middleware(
|
|
24
|
+
TrustedHostMiddleware,
|
|
25
|
+
allowed_hosts=["*"] # TODO: Configure this in production, e.g. ["api.example.com"]
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
# CORS: Configures Cross-Origin Resource Sharing
|
|
29
|
+
app.add_middleware(
|
|
30
|
+
CORSMiddleware,
|
|
31
|
+
allow_origins=["*"], # TODO: Update this with specific origins in production
|
|
32
|
+
allow_credentials=False, # TODO: Set to True if you need cookies/auth headers, but restrict origins
|
|
33
|
+
allow_methods=["*"],
|
|
34
|
+
allow_headers=["*"],
|
|
35
|
+
)
|
|
36
|
+
|
|
37
|
+
# Models
|
|
38
|
+
class UserStatus(str, Enum):
|
|
39
|
+
ACTIVE = "active"
|
|
40
|
+
INACTIVE = "inactive"
|
|
41
|
+
SUSPENDED = "suspended"
|
|
42
|
+
|
|
43
|
+
class UserBase(BaseModel):
|
|
44
|
+
email: EmailStr
|
|
45
|
+
name: str = Field(..., min_length=1, max_length=100)
|
|
46
|
+
status: UserStatus = UserStatus.ACTIVE
|
|
47
|
+
|
|
48
|
+
class UserCreate(UserBase):
|
|
49
|
+
password: str = Field(..., min_length=8)
|
|
50
|
+
|
|
51
|
+
class UserUpdate(BaseModel):
|
|
52
|
+
email: Optional[EmailStr] = None
|
|
53
|
+
name: Optional[str] = Field(None, min_length=1, max_length=100)
|
|
54
|
+
status: Optional[UserStatus] = None
|
|
55
|
+
|
|
56
|
+
class User(UserBase):
|
|
57
|
+
id: str
|
|
58
|
+
created_at: datetime
|
|
59
|
+
updated_at: datetime
|
|
60
|
+
|
|
61
|
+
model_config = ConfigDict(from_attributes=True)
|
|
62
|
+
|
|
63
|
+
# Pagination
|
|
64
|
+
class PaginationParams(BaseModel):
|
|
65
|
+
page: int = Field(1, ge=1)
|
|
66
|
+
page_size: int = Field(20, ge=1, le=100)
|
|
67
|
+
|
|
68
|
+
class PaginatedResponse(BaseModel):
|
|
69
|
+
items: List[Any]
|
|
70
|
+
total: int
|
|
71
|
+
page: int
|
|
72
|
+
page_size: int
|
|
73
|
+
pages: int
|
|
74
|
+
|
|
75
|
+
# Error handling
|
|
76
|
+
class ErrorDetail(BaseModel):
|
|
77
|
+
field: Optional[str] = None
|
|
78
|
+
message: str
|
|
79
|
+
code: str
|
|
80
|
+
|
|
81
|
+
class ErrorResponse(BaseModel):
|
|
82
|
+
error: str
|
|
83
|
+
message: str
|
|
84
|
+
details: Optional[List[ErrorDetail]] = None
|
|
85
|
+
|
|
86
|
+
@app.exception_handler(HTTPException)
|
|
87
|
+
async def http_exception_handler(request, exc):
|
|
88
|
+
return JSONResponse(
|
|
89
|
+
status_code=exc.status_code,
|
|
90
|
+
content=ErrorResponse(
|
|
91
|
+
error=exc.__class__.__name__,
|
|
92
|
+
message=exc.detail if isinstance(exc.detail, str) else exc.detail.get("message", "Error"),
|
|
93
|
+
details=exc.detail.get("details") if isinstance(exc.detail, dict) else None
|
|
94
|
+
).model_dump()
|
|
95
|
+
)
|
|
96
|
+
|
|
97
|
+
# Endpoints
|
|
98
|
+
@app.get("/api/users", response_model=PaginatedResponse, tags=["Users"])
|
|
99
|
+
async def list_users(
|
|
100
|
+
page: int = Query(1, ge=1),
|
|
101
|
+
page_size: int = Query(20, ge=1, le=100),
|
|
102
|
+
status: Optional[UserStatus] = Query(None),
|
|
103
|
+
search: Optional[str] = Query(None)
|
|
104
|
+
):
|
|
105
|
+
"""List users with pagination and filtering."""
|
|
106
|
+
# Mock implementation
|
|
107
|
+
total = 100
|
|
108
|
+
items = [
|
|
109
|
+
User(
|
|
110
|
+
id=str(i),
|
|
111
|
+
email=f"user{i}@example.com",
|
|
112
|
+
name=f"User {i}",
|
|
113
|
+
status=UserStatus.ACTIVE,
|
|
114
|
+
created_at=datetime.now(),
|
|
115
|
+
updated_at=datetime.now()
|
|
116
|
+
).model_dump()
|
|
117
|
+
for i in range((page-1)*page_size, min(page*page_size, total))
|
|
118
|
+
]
|
|
119
|
+
|
|
120
|
+
return PaginatedResponse(
|
|
121
|
+
items=items,
|
|
122
|
+
total=total,
|
|
123
|
+
page=page,
|
|
124
|
+
page_size=page_size,
|
|
125
|
+
pages=(total + page_size - 1) // page_size
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
@app.post("/api/users", response_model=User, status_code=status.HTTP_201_CREATED, tags=["Users"])
|
|
129
|
+
async def create_user(user: UserCreate):
|
|
130
|
+
"""Create a new user."""
|
|
131
|
+
# Mock implementation
|
|
132
|
+
return User(
|
|
133
|
+
id="123",
|
|
134
|
+
email=user.email,
|
|
135
|
+
name=user.name,
|
|
136
|
+
status=user.status,
|
|
137
|
+
created_at=datetime.now(),
|
|
138
|
+
updated_at=datetime.now()
|
|
139
|
+
)
|
|
140
|
+
|
|
141
|
+
@app.get("/api/users/{user_id}", response_model=User, tags=["Users"])
|
|
142
|
+
async def get_user(user_id: str = Path(..., description="User ID")):
|
|
143
|
+
"""Get user by ID."""
|
|
144
|
+
# Mock: Check if exists
|
|
145
|
+
if user_id == "999":
|
|
146
|
+
raise HTTPException(
|
|
147
|
+
status_code=status.HTTP_404_NOT_FOUND,
|
|
148
|
+
detail={"message": "User not found", "details": {"id": user_id}}
|
|
149
|
+
)
|
|
150
|
+
|
|
151
|
+
return User(
|
|
152
|
+
id=user_id,
|
|
153
|
+
email="user@example.com",
|
|
154
|
+
name="User Name",
|
|
155
|
+
status=UserStatus.ACTIVE,
|
|
156
|
+
created_at=datetime.now(),
|
|
157
|
+
updated_at=datetime.now()
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
@app.patch("/api/users/{user_id}", response_model=User, tags=["Users"])
|
|
161
|
+
async def update_user(user_id: str, update: UserUpdate):
|
|
162
|
+
"""Partially update user."""
|
|
163
|
+
# Validate user exists
|
|
164
|
+
existing = await get_user(user_id)
|
|
165
|
+
|
|
166
|
+
# Apply updates
|
|
167
|
+
update_data = update.model_dump(exclude_unset=True)
|
|
168
|
+
for field, value in update_data.items():
|
|
169
|
+
setattr(existing, field, value)
|
|
170
|
+
|
|
171
|
+
existing.updated_at = datetime.now()
|
|
172
|
+
return existing
|
|
173
|
+
|
|
174
|
+
@app.delete("/api/users/{user_id}", status_code=status.HTTP_204_NO_CONTENT, tags=["Users"])
|
|
175
|
+
async def delete_user(user_id: str):
|
|
176
|
+
"""Delete user."""
|
|
177
|
+
await get_user(user_id) # Verify exists
|
|
178
|
+
return None
|
|
179
|
+
|
|
180
|
+
if __name__ == "__main__":
|
|
181
|
+
import uvicorn
|
|
182
|
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|