cepradar-servi-frontend-responsive-instructions.ocm.json json Copy{
"ocm": "1",
"id": "cepradar-servi-frontend-responsive-instructions",
"kind": "skill",
"name": "Responsive Design",
"description": "Use when implementing responsive behavior in pages, forms, tables, modals, and panels. Prefer Tailwind breakpoints first and centralize JS breakpoint logic in reusable hooks when needed.",
"publisher": "cepradar",
"version": "1.0.0",
"capabilities": {
"domains": [
"general"
],
"tags": [
"skill-md",
"github-instructions"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Use when implementing responsive behavior in pages, forms, tables, modals, and panels. Prefer Tailwind breakpoints first and centralize JS breakpoint logic in reusable hooks when needed."
],
"primary": false,
"metadata": {
"source": {
"provider": "github-instructions",
"repository": "https://github.com/cepradar/servi_frontend",
"path": ".github/instructions/responsive.instructions.md",
"ref": "03c712a00334c026a70d1b37ceda1d1ed8313047",
"url": "https://github.com/cepradar/servi_frontend/blob/03c712a00334c026a70d1b37ceda1d1ed8313047/.github/instructions/responsive.instructions.md",
"key": "cepradar/servi_frontend/.github/instructions/responsive.instructions.md"
},
"applies_to": [
"src/components/**/*.jsx",
"src/components/**/*.js",
"src/hooks/**/*.js",
"src/hooks/**/*.jsx"
]
},
"instructions": "# Responsive Rules\n\n## Strategy\n- Mobile-first behavior should be preserved and improved incrementally.\n- Prefer Tailwind responsive utilities before adding JavaScript viewport logic.\n- Reuse existing breakpoint hooks when JS logic is necessary.\n\n## JavaScript Responsive Logic\n- Avoid adding repeated resize listeners inside multiple components.\n- If viewport logic is required, centralize it in a reusable hook.\n- Keep breakpoint conventions aligned with existing project breakpoints.\n\n## Layout and Overflow\n- Avoid unnecessary fixed widths.\n- Prevent uncontrolled horizontal overflow.\n- Validate ",
"cost": {
"context_tokens": 215
}
}