This file provides project context and operational guidelines for AI coding assistants (Qoder, Cursor, GitHub Copilot, etc.).
Qoder Community is an open-source community platform for sharing AI coding skills, agent configurations, and learning resources.
- Framework: Astro 5.6+ (Static Site Generator)
- Theme: Starlight 0.37+ (Documentation Theme)
- Language: TypeScript + Markdown/MDX
- Styling: CSS (custom styles in
src/styles/custom.css) - Deployment: Cloudflare Pages
- Package Manager: npm
qoder-community/
├── src/
│ ├── content/ # All content files (Markdown)
│ │ ├── skills/ # English skill docs (50+)
│ │ ├── skills-zh/ # Chinese skill docs
│ │ ├── skillSources/ # External skill sources
│ │ ├── agents/ # Agent config templates
│ │ ├── videos/ # Video resources
│ │ ├── meetups/ # Meetup events
│ │ ├── showcase/ # Project showcase
│ │ └── docs/ # Site pages
│ ├── components/ # Astro components (.astro)
│ ├── pages/ # Route pages
│ │ ├── *.astro # English pages
│ │ └── zh/*.astro # Chinese pages
│ ├── i18n/ # Internationalization config
│ └── styles/ # CSS styles
├── public/ # Static assets
│ └── images/ # Image assets
├── astro.config.mjs # Astro configuration
├── package.json # Dependencies
└── tsconfig.json # TypeScript config
# Development
npm install # Install dependencies
npm run dev # Start dev server (http://localhost:4321)
# Build
npm run build # Build for production (outputs to dist/)
npm run preview # Preview build result
# Check
npx astro check # TypeScript type checkingLocation: src/content/skills/ or src/content/skills-zh/
---
title: "Skill Name"
description: "Brief description, 1-2 sentences"
category: "development" # development | design | marketing | productivity | automation | data | security | document | meta
author: "Author Name"
authorUrl: "https://github.com/username"
sourceUrl: "https://github.com/..."
shareImage: "/images/skills/share/skill-name-share.png"
featured: false
date: 2025-01-01
---
# Skill Content
Write using Markdown format...| Category | Description |
|---|---|
development |
Development-related skills |
design |
Design-related skills |
marketing |
Marketing-related skills |
productivity |
Productivity tools |
automation |
Automation skills |
data |
Data processing skills |
security |
Security-related skills |
document |
Document processing skills |
meta |
Meta skills (e.g., skill creation) |
- Share images: 1200x630px PNG, place in
public/images/skills/share/ - Naming: Use kebab-case, e.g.,
skill-name-share.png
---
// Good example ✅
interface Props {
title: string;
description?: string;
}
const { title, description = '' } = Astro.props;
---
<div class="card">
<h3>{title}</h3>
{description && <p>{description}</p>}
</div>
<style>
.card {
padding: 1rem;
border-radius: 8px;
}
</style>// Good example ✅ - Explicit types, clear naming
export function getSkillsByCategory(category: string): Skill[] {
return skills.filter(skill => skill.data.category === category);
}
// Avoid ❌ - Vague types, unclear naming
export function get(c: any) {
return skills.filter(s => s.data.category === c);
}/* Good example ✅ - Use CSS variables, semantic class names */
.skill-card {
background: var(--sl-color-bg-nav);
border-radius: var(--sl-border-radius);
padding: 1rem;
}
/* Avoid ❌ - Hardcoded colors, non-semantic class names */
.sc {
background: #1a1a2e;
border-radius: 8px;
}- English content:
src/content/skills/,src/pages/ - Chinese content:
src/content/skills-zh/,src/pages/zh/ - Translation mapping:
src/i18n/skills-translations.ts
When adding a new Skill, create both English and Chinese versions.
# Commit message format
feat: Add new feature
fix: Fix bug
docs: Update documentation
style: Style adjustments
refactor: Code refactoring
# Examples
git commit -m "feat: add postgres skill"
git commit -m "docs: update CONTRIBUTING guide"
git commit -m "fix: fix SkillCard component styling"- Create/edit Markdown files under
src/content/ - Edit Astro components under
src/components/ - Edit styles in
src/styles/custom.css - Run
npm run devandnpm run build - Edit documentation files (README, CONTRIBUTING, etc.)
- Modify
astro.config.mjsconfiguration - Add new npm dependencies
- Modify
src/content.config.tscontent schema - Delete existing files
- Modify
package.json
- Commit API keys, passwords, or other sensitive information
- Modify the
.git/directory - Delete
node_modules/without reinstalling - Directly modify the
dist/directory - Push code that fails to build without testing
- Create
skill-name.mdinsrc/content/skills/ - Create corresponding Chinese version in
src/content/skills-zh/ - Add share image to
public/images/skills/share/ - Run
npm run buildto verify
# Clean and reinstall
rm -rf node_modules dist .astro
npm install
npm run buildEnsure frontmatter format is correct. Required fields include:
titledescriptioncategorydate
This file follows the AGENTS.md specification to provide project context for AI coding assistants.