Cursor rule
.cursor/rules/yaml.mdcYAML File Rules
Cursor rules
Quality
84/100
Scores the file, not the repository.Length
337 words
24 headings · 4 code blocksRepository
126
— · pushed 103 days agoLast changed
3 days ago
First indexed 3 days ago.12345678# YAML File Rules910## Overview1112Rules for modifying YAML files (`*.yaml`, `*.yml`) in go-crypto-wallet.1314## Applicable Directories1516| Directory | Description |17|-----------|-------------|18| `config/` | Application configuration files |19| `.github/workflows/` | GitHub Actions workflows |20| `.devcontainer/` | Dev container configuration |21| Root (`*.yaml`) | Docker Compose, tool configurations |2223## Verification Commands2425| Command | Purpose | Required |26|---------|---------|----------|27| `make yaml-lint` | Lint YAML files | Recommended |2829### Target Directories for yaml-lint3031The `yaml-lint` command checks:3233- `.github/workflows/`34- `.devcontainer/`35- `config/`3637## Configuration File Types3839### Application Config (`config/`)4041Wallet configuration files for BTC, BCH, ETH, XRP:4243```yaml44# Example: config/wallet/btc/watch.yaml45bitcoin:46 network: testnet47 host: "127.0.0.1:18332"48```4950### Docker Compose (`compose*.yaml`)5152Service definitions:5354| File | Description |55|------|-------------|56| `compose.yaml` | Base services (database, etc.) |57| `compose.btc.yaml` | Bitcoin services |58| `compose.bch.yaml` | Bitcoin Cash services |59| `compose.eth.yaml` | Ethereum services |60| `compose.xrp.yaml` | Ripple services |6162### GitHub Actions (`.github/workflows/`)6364CI/CD workflow definitions.6566## Validation6768### Manual Validation6970```bash71# Validate YAML syntax72python -c "import yaml; yaml.safe_load(open('file.yaml'))"7374# Or using yq75yq eval '.' file.yaml > /dev/null76```7778### Docker Compose Validation7980```bash81docker compose config82```8384## Best Practices8586### Formatting8788- Use 2 spaces for indentation89- Use quotes for strings that could be misinterpreted90- Keep lines under 120 characters9192### Structure9394```yaml95# Good: Explicit quotes for version strings96version: "3.8"9798# Good: Explicit quotes for port mappings99ports:100 - "8080:80"101102# Good: Anchors for repeated values103defaults: &defaults104 restart: unless-stopped105106services:107 app:108 <<: *defaults109```110111## Quick Checklist112113- [ ] Valid YAML syntax114- [ ] Consistent indentation (2 spaces)115- [ ] Sensitive values use environment variables, not hardcoded116- [ ] Port mappings are quoted117- [ ] Comments explain non-obvious configurations118119## Related Documentation120121- @compose.yaml - Main Docker Compose configuration122- @config/ - Application configuration files123- @.github/workflows/ - CI/CD workflows124125## Related Skills126127- `devops` - CI/CD and DevOps workflow128
Also in hiromaily/go-crypto-wallet
Diff this repo’s formatsOne 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?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/agent-files.mdc · 126 | Cursor rules | lint-formatarchdo-notagent-behaviour | 77/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/documentation-language.mdc · 126 | Cursor rules | archdo-notdocs | 36/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/general.mdc · 126 | Cursor rules | buildtestarchgit+2 | 83/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/task-context-loading.mdc · 126 | Cursor rules | archtypesdatabasedo-not+1 | 93/100 | 3 days ago | |
| hiromaily/go-crypto-walletpkg/AGENTS.md · 126 | AGENTS.md | stylearchdo-not | 80/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/github-actions.mdc · 126 | Cursor rules | stylearchgitperformance+4 | 77/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/proto.mdc · 126 | Cursor rules | buildlint-formatstylearch+3 | 96/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/security.mdc · 126 | Cursor rules | archsecuritydo-notagent-behaviour | 76/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/shell-script.mdc · 126 | Cursor rules | setupteststylearch+1 | 73/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/ssot.mdc · 126 | Cursor rules | stylearchtypesdo-not+2 | 84/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.github/copilot-instructions.md · 126 | Copilot instructions | teststylearchsecurity+1 | 56/100 | 3 days ago | |
| hiromaily/go-crypto-walletAGENTS.md · 126 | AGENTS.md | archtypesdo-notagent-behaviour+1 | 79/100 | 3 days ago | |
| hiromaily/go-crypto-walletCLAUDE.md · 126 | CLAUDE.md | archtypesdo-notagent-behaviour+1 | 79/100 | 3 days ago |
Diff against .cursor/rules/agent-files.mdc Diff against .cursor/rules/documentation-language.mdc Diff against .cursor/rules/general.mdc Diff against .cursor/rules/task-context-loading.mdc Diff against pkg/AGENTS.md Diff against .cursor/rules/github-actions.mdc Diff against .cursor/rules/proto.mdc Diff against .cursor/rules/security.mdc Diff against .cursor/rules/shell-script.mdc Diff against .cursor/rules/ssot.mdc Diff against .cursor/rules/typescript.mdc Diff against .github/copilot-instructions.md Diff against AGENTS.md Diff against CLAUDE.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 100/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| markstev/mark-starter.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+6 | 99/100 | 3 days ago | |
| Allymahmoud/case-intake-platform.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| dodgecfr/combatfilms-webapp.cursor/rules/frontend.mdc · 0 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| deifos/clipmira-subtitles.cursor/rules/frontend.mdc · 1 | Cursor rules | setuptestlint-formatstyle+7 | 99/100 | 3 days ago | |
| langflow-ai/langflow.cursor/rules/docs_development.mdc · 153k | Cursor rules | setupbuildtestlint-format+7 | 97/100 | 3 days ago | |
| TechSquidTV/Hermes.cursor/rules/20-hermes-api-tests.mdc · 45 | Cursor rules | teststyletesting-strategysecurity+3 | 97/100 | 3 days ago |
