xiaohongshu
xiaohongshu
diamond-fysio-frontend
Review and write React/Next.js components for Diamond Fysio project. Use when reviewing components, adding features, or checking code quality. Enforces project patterns like Tailwind CSS, accessibility, Contentful integration, and i18n.
Full skill instructions
This skill ensures consistency with the Diamond Fysio project's frontend patterns and best practices.
When reviewing or writing components, verify:
aria-label attributestabIndex={0} for focusable elementsfocus:outline-none focus-visible:ring-2 focus-visible:ring-teal-500alt attributesExample from Button.jsx:
<p className={btnType} role="button" aria-label={title} tabIndex={0}>
{title}
</p>
bg-gradient-to-r from-teal-500 to-cyan-600hover:from-teal-400 hover:to-cyan-500md:, lg: prefixes for breakpointsCommon button classes:
const btnType =
'w-full inline-flex items-center justify-center px-8 py-3 text-base font-medium rounded-md text-white bg-gradient-to-r from-teal-500 to-cyan-600 hover:from-teal-400 hover:to-cyan-500 md:py-4 md:text-lg md:px-10 shadow focus:outline-none focus-visible:ring-2 focus-visible:ring-teal-500';
const locale = router?.locale || 'nl'Example pattern:
const router = useRouter();
const locale = router?.locale || 'nl';
const isEn = locale === 'en';
const defaults = {
nl: { title: 'Nederlandse tekst', ... },
en: { title: 'English text', ... }
};
const t = {
title: i18n?.title || defaults[locale].title
};
next/link with <Link href={path}><a href={url} rel="noopener noreferrer">router.locale for current language/components, pages in /pages({ title, type, internal_link }) => {}extra_classes = ''/lib/query//components/contentTypes/ for type definitions@contentful/rich-text-react-renderer<Image> component when possible/components/ComponentName.jsx/components/ComponentName/ with sub-componentsexport default ComponentName<a> for internal links)Primary gradient: from-teal-500 to-cyan-600
Hover gradient: from-teal-400 to-cyan-500
Focus ring: focus-visible:ring-teal-500
@heroicons/react/solid or @heroicons/react/outline@fortawesome/react-fontawesomereact-icons<Layout> wrapper from /components/Layout/Layout.jsx/components/Headers//components/Layout/Footer.jsximport Link from 'next/link';
const Button = ({ title, internal_link, external_link, extra_classes = '' }) => {
const btnType =
'inline-flex items-center px-8 py-3 rounded-md bg-gradient-to-r from-teal-500 to-cyan-600 hover:from-teal-400 hover:to-cyan-500 focus:outline-none focus-visible:ring-2 focus-visible:ring-teal-500';
return internal_link ? (
<Link href={internal_link}>
<p className={btnType} role="button" aria-label={title} tabIndex={0}>
{title}
</p>
</Link>
) : (
<a href={external_link} className={btnType} aria-label={title} rel="noopener noreferrer">
{title}
</a>
);
};
export default Button;
// Missing: Next.js Link, accessibility, Tailwind classes
const Button = ({ title, link }) => {
return (
<a href={link} style={{ backgroundColor: 'teal' }}>
{' '}
{/* inline style! */}
{title} {/* no aria-label! */}
</a>
);
};
When testing features, always verify on the live site to ensure proper deployment.
/tailwind.config.js/eslint.config.js/tsconfig.json/docs/ folderxiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience