RuleStack

Configs

Stacks

Compare

Diff

RuleStack

Configs

Stacks

Compare

Diff

Read API

RuleStack

Configs

Stacks

Compare

Diff

Read API

Configs/Cursor rules/MiloAgudelo/jamcam-astro

Cursor rule

.cursor/rules/astro-components.mdc
Cursor rules

Quality

66/100

Scores the file, not the repository.

Length

299 words

10 headings · 1 code blocks

Repository

4

— · pushed 203 days ago

Last changed

3 days ago

First indexed 3 days ago.
MiloAgudelo/jamcam-astro/.cursor/rules/astro-components.mdcRawGitHub
1---
2globs: src/components/*.astro,src/layouts/*.astro,src/pages/*.astro,src/pages/*/*.astro
3---
4 
5# Astro Component Development Guidelines
6 
7## Component Structure
8Follow this structure for all [.astro components](mdc:src/components/):
9 
10```astro
11---
12// TypeScript frontmatter
13import type { Props } from './types';
14import { getTranslation } from '@/i18n';
15 
16interface ComponentProps {
17 // Define props with TypeScript
18}
19 
20const { prop1, prop2 } = Astro.props;
21const t = getTranslation(Astro.currentLocale);
22---
23 
24<!-- HTML template with Tailwind classes -->
25<section class="container mx-auto px-4">
26 <h2>{t.section.title}</h2>
27 <!-- Component content -->
28</section>
29 
30<style>
31 /* Component-scoped CSS if needed */
32</style>
33```
34 
35## Key Patterns in JAMCAM Components
36 
37### Carousel Components
38- Use [Carousel.astro](mdc:src/components/Carousel.astro) for image galleries
39- Support both desktop and mobile layouts
40- Implement smooth scrolling and touch gestures
41 
42### Section Components
43- Prefix section components with descriptive names (e.g., [AboutSection.astro](mdc:src/components/AboutSection.astro))
44- Use consistent container classes: `container mx-auto px-4`
45- Include proper semantic HTML (section, article, aside)
46 
47### Card Components
48- Follow [InfoCard.astro](mdc:src/components/InfoCard.astro) patterns for consistent styling
49- Use Tailwind for responsive designs
50- Include hover effects and proper accessibility
51 
52### Layout Components
53- [Banner.astro](mdc:src/components/Banner.astro) handles page headers with localized images
54- [Header.astro](mdc:src/components/Header.astro) and [Footer.astro](mdc:src/components/Footer.astro) for site-wide elements
55- [LanguageSwitcher.astro](mdc:src/components/LanguageSwitcher.astro) for i18n navigation
56 
57## Performance Considerations
581. **Optimize images** using Astro's image optimization
592. **Lazy load** content below the fold
603. **Minimize JavaScript** - leverage Astro's static generation
614. **Use WebP format** for images when possible
625. **Implement proper caching** headers for assets
63 
64## Accessibility Requirements
65- Use semantic HTML elements
66- Include proper ARIA labels and descriptions
67- Ensure keyboard navigation works
68- Test with screen readers
69- Maintain color contrast ratios
70- Provide alt text for all images
71 
72## Colombian Scouting Branding
73- Use official colors and typography from [global.css](mdc:src/styles/global.css)
74- Include scout logos: [logo-scouts-colombia.png](mdc:public/images/logo-scouts-colombia.png), [logo-world-scouting.png](mdc:public/images/logo-world-scouting.png)
75- Follow brand guidelines for JAMCAM logo usage
76- Respect Colombian cultural elements in design choices
77description:
78globs:
79alwaysApply: false
80---
81 

Sections

  • Astro Component Development Guidelines
  • Component Structure
  • Key Patterns in JAMCAM Components
  • Carousel Components
  • Section Components
  • Card Components
  • Layout Components
  • Performance Considerations
  • Accessibility Requirements
  • Colombian Scouting Branding

What it covers

code-stylearchitectureuiperformance

Stack — with the evidence

typescript

(1.00)

astro

(1.00)

vercel

(1.00)

tailwind

(0.70)

javascript

(0.60)

Glob targeting

  • src/components/*.astro
  • src/layouts/*.astro
  • src/pages/*.astro
  • src/pages/*/*.astro

Format

Cursor rules

The most expressive format here. Many small .mdc files, each with frontmatter declaring when it should load, so a rule about migrations only enters context when a migration is open. Costs the most to maintain and only one editor reads it.

What the corpus says about it

Repository

Owner
MiloAgudelo
Language
—
License
—
Archived
no

All configs in this repo

Also in MiloAgudelo/jamcam-astro

Diff this repo’s formats

One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?

The other instruction files in this repository
RepositoryFormatStackCoversScoreChanged
MiloAgudelo/jamcam-astro.cursor/rules/asset-management.mdc · 4Cursor rulestypescriptastro+3stylearchperformance62/1003 days ago
MiloAgudelo/jamcam-astro.cursor/rules/development-workflow.mdc · 4Cursor rulestypescriptastro+4setupbuildteststyle+681/1003 days ago
MiloAgudelo/jamcam-astro.cursor/rules/internationalization.mdc · 4Cursor rulestypescriptastro+3arch62/1003 days ago
MiloAgudelo/jamcam-astro.cursor/rules/jamcam-project-overview.mdc · 4Cursor rulestypescriptastro+3arch48/1003 days ago
MiloAgudelo/jamcam-astro.cursor/rules/styling-system.mdc · 4Cursor rulestypescriptastro+3stylearchui66/1003 days ago
Diff against .cursor/rules/asset-management.mdc Diff against .cursor/rules/development-workflow.mdc Diff against .cursor/rules/internationalization.mdc Diff against .cursor/rules/jamcam-project-overview.mdc Diff against .cursor/rules/styling-system.mdc

Similar configs

Same format, overlapping stack, ranked by quality.

Same format, overlapping stack, ranked by quality
RepositoryFormatStackCoversScoreChanged
hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126Cursor rulesgobun+5setupbuildtestlint-format+6100/1003 days ago
TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45Cursor rulestypescriptpytest+15testlint-formatstylearch+5100/1003 days ago
markstev/mark-starter.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+14setuptestlint-formatstyle+699/1003 days ago
Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+13setuptestlint-formatstyle+799/1003 days ago
dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0Cursor rulestypescriptturborepo+15setuptestlint-formatstyle+799/1003 days ago
deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1Cursor rulestypescriptnextjs+5setuptestlint-formatstyle+799/1003 days ago
langflow-ai/langflow.cursor/rules/docs_development.mdc · 153kCursor rulespythonnode+16setupbuildtestlint-format+797/1003 days ago
TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45Cursor rulestypescriptpytest+15teststyletesting-strategysecurity+397/1003 days ago
RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack

RuleStack

Built by

Kynth Studio

Directory

Configs
Stacks
Compare formats
Diff two configs
Best AGENTS.md examples

Formats

AGENTS.md
CLAUDE.md
Cursor rules
Copilot instructions

Reference

Read API
Corpus health
Privacy Policy
Terms

RuleStack