Cursor rule
.cursor/rules/task-context-loading.mdcTask-Oriented Context Loading
Cursor rules
Quality
93/100
Scores the file, not the repository.Length
827 words
25 headings · 11 code blocksRepository
126
— · pushed 102 days agoLast changed
3 days ago
First indexed 3 days ago.123456# Task-Oriented Context Loading78Rules for automatically loading appropriate context documents when receiving a task.910**Key Skill**: Use [label-context-mapping](../skills/label-context-mapping/SKILL.md) for all label → skill/context mappings.1112**SSOT Reference**: See [Task Classification](../../docs/guidelines/task-classification.md) for the authoritative definition of labels and task types.1314## Target Files1516This rule applies when editing the following file types:1718- `**/*.go`19- `**/*.md`20- `**/*.toml`21- `**/*.yaml`22- `**/*.hcl`23- `**/*.sql`24- `**/*.sh`25- `**/*.proto`2627## Task Detection Priority28291. **GitHub Issue Labels** (if working on an issue) → Use `label-context-mapping` skill302. **Explicit User Specification** → Second priority313. **Keyword Detection** → Fallback (see below)3233## Label-Based Context Loading3435When working on a GitHub Issue, load the `label-context-mapping` skill to determine:3637- Type label → Context document38- Lang/Scope label → Development skill39- Chain label → Chain context4041See [label-context-mapping](../skills/label-context-mapping/SKILL.md) for complete mappings.4243## Keyword-Based Detection (Fallback)4445If no GitHub labels are available, determine task type from keywords:4647| Keywords | Task Type | Context File |48| ------------------------------------------------- | --------------- | ------------------------------------- |49| bug, fix, error, issue | `bug` | `docs/task-contexts/bug-fix.md` |50| add, implement, feature, new | `enhancement` | `docs/task-contexts/feature-add.md` |51| refactor, reorganize, move, cleanup | `refactoring` | `docs/task-contexts/refactoring.md` |52| schema, DB, table, column, migration | `db-change` | `docs/task-contexts/db-change.md` |53| document, README, description, docs, comment | `documentation` | `docs/task-contexts/documentation.md` |54| test, coverage, spec, unit test, integration test | `test` | `docs/task-contexts/test.md` |55| security, vulnerability, CVE | `security` | `docs/task-contexts/security.md` |5657## Chain Detection5859Identify the chain from the following keywords:6061| Keywords | Chain | Context Files |62| ----------------------------------------------- | ----- | ------------------------------------------------------------------- |63| Bitcoin, BTC, Taproot, Descriptor, PSBT, MuSig2 | BTC | `docs/task-contexts/chain-specific.md`, `docs/chains/btc/README.md` |64| Bitcoin Cash, BCH, CashAddr | BCH | `docs/task-contexts/chain-specific.md`, `docs/chains/bch/README.md` |65| Ethereum, ETH, ERC-20, Gas, Nonce | ETH | `docs/task-contexts/chain-specific.md`, `docs/chains/eth/README.md` |66| Ripple, XRP, Destination Tag | XRP | `docs/task-contexts/chain-specific.md`, `docs/chains/xrp/README.md` |6768## File Type Detection for Verification6970Determine appropriate verification commands based on the edited file extension:7172| File Extension | Required Verification | Optional |73| ------------------ | ----------------------------------- | -------------- |74| `*.go` | `make go-lint`, `make check-build` | `make go-test` |75| `*.md`, `*.mdc` | (none) | markdownlint |76| `*.sql`, `*.hcl` | `make atlas-fmt`, `make atlas-lint` | |77| `*.yaml`, `*.toml` | (none) | |78| `*.sh` | (none) | shellcheck |79| `*.proto` | `make proto` | |8081**Important**: Do **NOT** run Go-related verification commands for documentation-only (`*.md`) changes.8283See `docs/task-contexts/verification.md` for details.8485## Context Loading Procedure86871. **Determine task type**: Identify task type from user request882. **Identify chain**: Identify chain if cryptocurrency-related893. **Load context**: Load the relevant documents904. **Detect file type**: Check the extension of files to edit915. **Determine verification commands**: Select verification commands based on file type9293```94Order:951. docs/task-contexts/{task-type}.md (by task type)962. docs/task-contexts/chain-specific.md (if chain-related)973. docs/chains/{chain}/README.md (for specific chain)984. docs/task-contexts/verification.md (verification commands)995. Additional related documents (specified in each context file)100```101102## Explicit Task Type Specification103104If the user explicitly specifies the task type, follow that type:105106```107Task Type: bug-fix, Chain: BCH. {description}108Task Type: feature-add, Chain: BTC. {description}109Task Type: db-change. {description}110Task Type: documentation. {description}111```112113## Chain-Specific Rules114115### BCH (Bitcoin Cash) - Important116117For BCH tasks, always check the following rules:1181191. **Do NOT modify BTC code directly**: Handle BCH-specific issues by overriding methods on the BCH side1202. **BitcoinCash struct**: Embeds `btc.Bitcoin`1213. **No SegWit/Taproot support**: Related features are not used in BCH122123```go124// BCH implementation location125internal/infrastructure/api/btc/bch/126127// Override example128func (b *BitcoinCash) GetAddressInfo(addr string) (*dtobtc.AddressInfo, error) {129 // BCH-specific implementation130}131```132133## Directory Structure Reference134135### Use Case Layer136137```138internal/application/usecase/139├── keygen/{btc,eth,xrp}/140├── sign/{btc,eth,xrp}/141└── watch/{btc,eth,xrp}/142```143144### Infrastructure Layer145146```147internal/infrastructure/api/148├── bitcoin/{btc,bch}/149├── ethereum/{eth,erc20}/150└── ripple/xrp/151```152153### CLI Layer154155```156internal/interface-adapters/cli/157├── keygen/api/{btc,eth}/158├── sign/159└── watch/api/{btc,eth,xrp}/160```161162## Verification Commands by File Type163164### Go Files (\*.go)165166```bash167make go-lint # Required: Linter check168make check-build # Required: Build verification169make go-test # Recommended: Run tests (when functionality changes)170make tidy # Recommended: Tidy dependencies (when imports change)171```172173### Documentation Files (\*.md)174175```bash176# Go-related commands not required177# Optional: markdownlint (if installed)178```179180### Database Files (_.sql,_.hcl)181182```bash183make atlas-fmt # Required: Format184make atlas-lint # Required: Lint185make sqlc # On schema change186```187188### Shell Scripts (\*.sh)189190```bash191# Optional: shellcheck (if installed)192```193194## Quick Decision Tree195196```197Task Received198 │199 ├─ Editing Go files?200 │ └─ Yes → make go-lint, make check-build, (make go-test)201 │202 ├─ Documentation only?203 │ └─ Yes → No verification commands needed204 │205 ├─ DB schema change?206 │ └─ Yes → make atlas-fmt, make atlas-lint, make sqlc207 │208 └─ Other209 └─ Decide based on file type210```211212## Related Documents213214- [label-context-mapping](../skills/label-context-mapping/SKILL.md) - Label → Skill/Context mapping215- [Task Classification SSOT](../../docs/guidelines/task-classification.md) - Label definitions216- [Task Contexts](../../docs/task-contexts/README.md) - Context file details217- [Verification Matrix](../../docs/task-contexts/verification.md) - Verification commands218- [AGENTS.md](../../AGENTS.md) - Project-wide guidelines219
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/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.cursor/rules/yaml.mdc · 126 | Cursor rules | lint-formatstylearchtypes+3 | 84/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 | |
| hiromaily/go-crypto-walletpkg/AGENTS.md · 126 | AGENTS.md | stylearchdo-not | 80/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/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 .cursor/rules/yaml.mdc Diff against .github/copilot-instructions.md Diff against AGENTS.md Diff against CLAUDE.md Diff against pkg/AGENTS.md
Similar configs
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| TechSquidTV/Hermes.cursor/rules/10-hermes-api.mdc · 45 | Cursor rules | testlint-formatstylearch+5 | 100/100 | 3 days ago | |
| hiromaily/go-crypto-wallet.cursor/rules/typescript.mdc · 126 | Cursor rules | setupbuildtestlint-format+6 | 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 |
