Skip to content

Commit 1e40eb5

Browse files
Update rules to check name
1 parent bedb9ab commit 1e40eb5

File tree

3 files changed

+98
-93
lines changed

3 files changed

+98
-93
lines changed

.cursor/rules/wiki-guide.mdc

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,38 +23,43 @@ Each card must belong to one of the following three types:
2323

2424
1. `explain-card`: For cards that explain a concept, technology, or protocol in detail.
2525
* These cards must follow the dedicated rules for this category.
26-
* Examples: `Smart Contracts.md`, `Decentralized Finance.md`, `Proof of Work.md`.
26+
* Examples: `Smart contracts.md`, `Decentralized finance.md`, `Proof of work.md`.
2727
2. `show-card`: For cards that showcase a project, tool, or resource related to Web3.
2828
* These cards must follow the dedicated rules for this category.
2929
* Examples: `Ethereum.md`, `Uniswap.md`, `Metamask.md`.
3030
3. `awesome-card`: For cards that curate a list of valuable resources related to a topic.
3131
* These cards must follow the dedicated rules for this category.
32-
* Examples: `Web3 Resources.md`, `Blockchain Tools.md`, `Awesome Ethereum.md`.
32+
* Examples: `Web3 resources.md`, `Blockchain tools.md`, `Awesome ethereum.md`.
3333

3434
#### Card Location
3535

36-
All card Markdown files **MUST** be placed **directly within the `cards` directory** (e.g., `cards/My New Card.md`). This is a strict requirement.
36+
All card Markdown files **MUST** be placed **directly within the `cards` directory** (e.g., `cards/My new card.md`). This is a strict requirement.
3737

3838
#### Card Naming Conventions
3939

40-
1. The filename of a card should accurately represent its core topic. Use standard capitalization (e.g., `Smart Contract.md`, not `smart contract.md`).
41-
2. The first letter of the filename **MUST** be uppercase (e.g., `Proof of Stake.md`, `Metamask.md`, `Zero-Knowledge Proofs.md`).
40+
#### Card Naming Conventions
41+
42+
1. The filename of a card should accurately represent its core topic.
43+
2. No special characters are allowed in the filename, only letters, numbers, and spaces. Only the first letter of the first word should be capitalized, and the rest should be in lowercase (e.g., `Decentralized finance.md`, `Smart contracts.md`).
44+
- Example: `Decentralized finance.md` is acceptable, while `decentralized-finance.md` or `Decentralized-Finance.md` are not.
45+
- Example: `Smart contracts.md` is acceptable, while `smart_contracts.md` or `SmartContracts.md` are not.
4246
3. For concepts with commonly used abbreviations (e.g., EIP55, ERC721, ERC1155), follow the most widely accepted naming convention (e.g., `EIP55.md`, `ERC721.md`, `ERC1155.md`).
4347
4. The filename **MUST** be unique within the `cards` directory. No two cards can have the same filename.
44-
5. The filename **MUST** be descriptive and relevant to the card's content. Avoid generic names like `Card1.md` or `New Card.md`.
45-
6. Filenames **MUST NOT** contain special characters. Use spaces to separate words if necessary (e.g., `Decentralized Finance.md`).
48+
5. The filename **MUST** be descriptive and relevant to the card's content. Avoid generic names like `Card1.md` or `New card.md`.
49+
6. Filenames **MUST NOT** contain special characters. Use spaces to separate words if necessary (e.g., `Decentralized finance.md`).
50+
4651

4752
#### Card Links
4853

4954
Since this wiki is built using Obsidian, two types of links can be used within cards: internal and external.
5055

51-
* **Internal Links:** These links point to existing cards within the wiki. They are created using the syntax `[[Page Name]]`, where `Page Name` is the name of the target card (e.g., `[[Ethereum]]` links to `Ethereum.md`). Internal links connect related concepts and provide easy navigation. It is crucial to ensure all internal links are valid.
56+
* **Internal Links:** These links point to existing cards within the wiki. They are created using the syntax `[[Page name]]`, where `Page name` is the name of the target card (e.g., `[[Ethereum]]` links to `Ethereum.md`). Internal links connect related concepts and provide easy navigation. It is crucial to ensure all internal links are valid.
5257
* **External Links:** These links point to external resources like official websites or documentation. They are created using the syntax `[Text](mdc:URL)`, where `Text` is the clickable text and `URL` is the target link (e.g., `[Ethereum Official Website](mdc:https:/ethereum.org)`). External links provide additional context and references.
5358

5459
##### Internal Links Guidelines
5560

5661
* A script stores all existing card names in `scripts/card_index.txt` (one name per line, without the `.md` extension). Use this file to verify if a card name exists before creating a new card.
57-
* Use the `[[Page Name]]` syntax for internal links. If the target card doesn't exist, ask the user for confirmation before creating it. The new card must follow all rules.
62+
* Use the `[[Page name]]` syntax for internal links. If the target card doesn't exist, ask the user for confirmation before creating it. The new card must follow all rules.
5863

5964
##### External Links Guidelines
6065

@@ -89,6 +94,7 @@ After creating or updating a card, perform a final review to ensure all guidelin
8994

9095
* **Run the command ` python3 scripts/check-tag.py`**: This script checks for the correct category tag at the beginning of each card. Fix any reported errors.
9196
* **Run the command `python3 scripts/check-internal-links.py`**: This script checks for broken internal links. Fix any reported errors.
97+
* **Run the command `python3 scripts/check-card-name.py`**: This script checks for card name violations in the `cards` directory. Fix any reported errors.
9298
* **Cross-linking**: Review the card for mentions of concepts, projects, or technologies that could be linked to existing cards (check `scripts/card_index.txt` if necessary). Add internal links to enhance the knowledge network. Update linked cards if they lack detail or accuracy.
9399
* **References and Citations**: Where possible, provide references to primary sources, official documentation, or reputable third-party analyses.
94100
* **No Superficial Content**: Avoid brief, generic, or placeholder content. Every card should aim to be a definitive, standalone resource, similar in quality and depth to a well-maintained Wikipedia article.

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717

1818
- name: Run card tag check script
1919
run: python3 scripts/check-tag.py
20+
21+
- name: Run card name check script
22+
run: python3 scripts/check-card-name.py
2023

2124
- name: Run card index generation and internal link check script
2225
run: python3 scripts/check-internal-links.py

scripts/card_index.txt

Lines changed: 80 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,54 @@
11
AMA
22
AMM
33
API
4-
ASIC Resistant
4+
ASIC resistant
55
ATH
66
ATL
77
Acala
88
Airdrop
99
Alchemy
1010
Altcoin
11-
Anti-Money Laundering (AML)
11+
Anti money laundering
1212
Arbitrum
13-
Artificial Intelligence
13+
Artificial intelligence
1414
Astar
1515
Avalanche
16-
Awesome Darwinia
17-
Awesome Ethereum
18-
Awesome Faucets
19-
Awesome Polkadot
20-
Awesome Solana
21-
Awesome Substrate
22-
Awesome Web3Tools
23-
BNB Chain
16+
Awesome darwinia
17+
Awesome ethereum
18+
Awesome polkadot
19+
Awesome solana
20+
Awesome substrate
21+
Awesome web3Tools
22+
BNB chain
2423
Bagholder
2524
Base
26-
Beacon Chain
25+
Beacon chain
2726
Bearish
2827
Berachain
2928
Binance
30-
Binance Smart Chain
29+
Binance smart chain
3130
Bitcoin
3231
Blast
33-
Blast Network
3432
Block
3533
Blockscan
3634
Bloodbath
3735
Bounty
3836
Bullish
39-
Burned Tokens
40-
Buy Wall
41-
ByBit's $1.4 Billon ETH Hack
42-
Byzantine Fault
43-
Centralized Exchange (CEX)
37+
Burned tokens
38+
Buy wall
39+
Byzantine fault
40+
Centralized exchange
4441
Chainlink
45-
Circulating Supply
42+
Circulating supply
4643
Coinbase
47-
Cold Wallet
44+
Cold wallet
4845
Consensus
49-
Counter-Terrorist Financing (CTF)
46+
Counter terrorist financing
5047
CrossFi
5148
Crowdsale
52-
Crypto Bubble
49+
Crypto bubble
5350
CryptoKitties
51+
Custodial wallet
5452
Custody
5553
Cyber
5654
DAA
@@ -60,53 +58,54 @@ DDOS
6058
DEX
6159
DYOR
6260
Darwinia
63-
Darwinia Network
64-
Data Security
61+
Darwinia network
62+
Data security
6563
DeFI
66-
DeGov.AI
67-
Decentralized Finance (DeFi)
68-
Decentralized Identity (DID)
69-
Dencun Upgrade (EIP-4844)
64+
Decentralized finance
65+
Decentralized identity
66+
Degov
67+
Dencun upgrade
7068
Diem
7169
Difficulty
72-
Double-spend
73-
Dusting Attack
70+
Doublespend
71+
Dusting attack
7472
EIP
7573
EIP-1559
7674
ENS
7775
EOA
78-
ERC Standards
76+
ERC-1155
7977
ERC-20
8078
ERC-721
8179
ETF
8280
EVM
81+
Erc standards
8382
Ethereum
84-
Ethereum Request for Comments 1155 (ERC-1155)
85-
Ethereum Request for Comments 721 (ERC-721)
86-
Ethereum Yellow Paper
83+
Ethereum yellow paper
8784
Etherscan
8885
Faucet
89-
Fear of Missing Out
90-
Fiat-Pegged Cryptocurrency
91-
Financial Inclusion
92-
Fully Diluted Valuation (FDV)
86+
Fear of missing out
87+
Fiatpegged cryptocurrency
88+
Financial inclusion
89+
Fully diluted valuation
9390
Gas
94-
Gas Limit
95-
Gas Price
96-
Genesis Block
91+
Gas limit
92+
Gas price
93+
Genesis block
9794
Gm
9895
Gwei
9996
Halving
10097
Hard cap
10198
Hard fork
99+
Hardware wallet
100+
Hot wallet
102101
ICO
103102
IPO
104103
IYKYK
105104
InfoFi
106105
Infura
107106
Ink
108107
Kaito
109-
Know Your Customer (KYC)
108+
Know your customer
110109
Layer 2
111110
Lazarusbounty
112111
Ledger
@@ -116,97 +115,94 @@ Linea
116115
Liquidity
117116
Lumia
118117
Mantle
119-
Market Maker
120-
Market Taker
118+
Market maker
119+
Market taker
121120
Memecoin
122121
Mempool
123-
Merkle Tree
122+
Merkle tree
124123
MetaMask
125124
Miner
126-
Mnemonic Phrase
125+
Mnemonic phrase
127126
Moonbeam
128127
Morph
129128
Move
130129
Multisignal
131-
Mysten Labs
130+
Mysten labs
132131
NFT
133-
Nakamoto Coefficient
132+
Nakamoto coefficient
134133
Near
135134
Node
136135
Nonce
137136
OTC
138-
Off-chain transaction
139-
On-chain governance
137+
Offchain transaction
138+
Onchain governance
140139
OpenZeppelin
141140
Optimism
142-
Optimism Stack (OP Stack)
141+
Optimism stack
143142
Oracle
144143
Parachain
145-
Pectra Upgrade
146-
Pi Network
144+
Pectra upgrade
145+
Phantom
146+
Pi
147147
Polkadot
148148
Polygon
149149
Portfolio
150-
Privacy Coins
151-
Private Key
152-
Proof of Authority (PoA)
150+
Privacy coins
151+
Private key
152+
Proof of authority
153153
Proof of stake
154154
Proof of work
155-
Public Keys
156-
Rat Trading
155+
Public key
156+
Rat trading
157157
Regulation
158-
Replay Attack
159-
Return On Investment (ROI)
160-
Revoke.Cash
158+
Replay attack
159+
Return on investment
160+
Revokecash
161161
Rollup
162162
Rugpull
163+
SUI
163164
Salt
164165
Satoshi
165-
Satoshi Nakamoto
166-
Scroll Network
166+
Satoshi nakamoto
167+
Scroll network
167168
Seed
168-
Smart Contract
169+
Self custody wallet
170+
Smart contract
169171
Snapshot
170172
Soft fork
171173
Solana
172174
Solidity
173175
Soneium
174-
Soulbound Tokens
176+
Soulbound tokens
175177
Stablecoin
176178
Staking
177179
Starknet
178180
Story
179181
Subscan
180182
Substrate
181-
Sui (SUI)
182183
TRON
183184
Tezos
184185
The Merge
185-
Total Value Locked (TVL)
186-
Trading Volume
187-
Transactions Per Second (TPS)
188-
Turing-Complete
186+
Total value locked
187+
Trading volume
188+
Transactions per second
189+
Turing complete
189190
UniChain
190-
Upgradeable Smart Contracts
191+
Upgradeable smart contracts
191192
Validator
192-
Vitalik Buterin
193+
Vitalik buterin
193194
Wallet
194195
Web3
195196
Web3 Wiki
196197
Wei
197198
Whale
198-
When Lambo
199-
When Moon
199+
When lambo
200+
When moon
200201
Whitelist
201-
World Chain
202+
World chain
202203
XAI
203-
Yield Farming
204+
Yield farming
204205
ZKSync
205-
Zero-Knowledge Proof (ZKP)
206-
Zero-Knowledge Succinct Non-Interactive Argument of Knowledge (zk-SNARKs)
207-
custodial wallet
208-
hardware wallet
209-
hot wallet
210-
phantom
211-
self custody wallet
206+
Zero knowledge proof
207+
Zero knowledge succinct non interactive argument of knowledge
212208
zkKYC

0 commit comments

Comments
 (0)