nip60
Skill1 starsChanged 5 months agoMITView on GitHub
This skill provides comprehensive knowledge for building Cashu wallets on Nostr using @nostr-dev-kit/wallet. It covers NIP-60 (Cashu Wallets) and NIP-61 (Nutzaps) specifications and their NDK implementations. NIP-60 defines a standard for storing Cashu wallet state on Nostr relays. Key principles: NIP-61 defines "Nutzaps" - a way to send Cashu tokens via Nostr events: Cashu proofs can be locked to a public key. Only the holder of the corresponding private key can redeem them. This is how nutzaps work - tokens…
- Reads credentials
- Installs packages
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- agent-homeSkill
- cohesiveSkill
- delegate-minimalSkill
- deploy-nsitesSkill
- ferry-search-greeceSkill
- hash-outSkill
- high-levelSkill
- meta-feedbackSkill
- prime-contextSkill
- repo-marketingSkill
- runbookSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 13 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈13
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 782
Encryption: All sensitive wallet data uses NIP-44 encryption to self.
- Distinctive: line 784
Relay Selection: Use trusted relays for wallet events.
- Distinctive: line 786
Mint Trust: Only use mints you trust. The mint can see all transactions and could potentially rug (refuse to honor tokens).
- Distinctive: line 788
Proof Validation: Always validate proofs are unspent before accepting.
- Distinctive: line 795
Ensure the user is authenticated (NDK signer is set)
- Distinctive: line 796
Check that relays are connected
- Distinctive: line 797
Verify kind 17375 event exists for the user
- Distinctive: line 800
Verify mint list (kind 10019) is published
- Distinctive: line 801
Check that P2PK is set correctly in mint list
- Distinctive: line 802
Ensure nutzap relays are in your relay set
- Distinctive: line 803
Verify you have the private key matching your P2PK
- Very specific: line 806
Call wallet.start() to begin monitoring
- Very specific: line 807
Check for balance_updated events
- Distinctive: line 808
Verify token events (kind 7375) are being received
- Distinctive: line 812
Verify sufficient balance in a shared mint
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
NIP-60 Cashu Wallet & NIP-61 Nutzaps - Complete Implementation Guide
Overview
This skill provides comprehensive knowledge for building Cashu wallets on Nostr using @nostr-dev-kit/wallet. It covers NIP-60 (Cashu Wallets) and NIP-61 (Nutzaps) specifications and their NDK implementations.
NIP References
- NIP-60 (Cashu Wallets): https://github.com/nostr-protocol/nips/blob/master/60.md
- NIP-61 (Nutzaps): https://github.com/nostr-protocol/nips/blob/master/61.md
- NIP-87 (Mint Discovery): https://github.com/nostr-protocol/nips/blob/master/87.md
Event Kinds Reference
| Kind | Constant | Description | Encryption |
| 375 | NDKKind.CashuWalletBackup | Wallet private key backup | NIP-44 encrypted to self |
| 7373 | NDKKind.CashuReserve | Reserved proofs for pending operations | NIP-44 encrypted |
| 7374 | NDKKind.CashuQuote | Pending mint quote (deposit in progress) | NIP-44 encrypted |
| 7375 | NDKKind.CashuToken | Stored Cashu proofs (the actual tokens) | NIP-44 encrypted |
| 7376 | NDKKind.CashuWalletTx | Transaction history record | NIP-44 encrypted |
| 10019 | NDKKind.CashuMintList | Public mint preferences for receiving nutzaps | NOT encrypted |
| 17375 | NDKKind.CashuWallet | Wallet configuration (mints, privkeys, relays) | NIP-44 encrypted |
| 9321 | NDKKind.Nutzap | Nutzap event (sending Cashu tokens to someone) | NOT encrypted |
Installation
npm install @nostr-dev-kit/ndk @nostr-dev-kit/wallet
# or
pnpm add @nostr-dev-kit/ndk @nostr-dev-kit/wallet
# or
bun add @nostr-dev-kit/ndk @nostr-dev-kit/walletCore Concepts
What is NIP-60?
NIP-60 defines a standard for storing Cashu wallet state on Nostr relays. Key principles:
- Wallet Configuration (kind 17375): Encrypted event containing mint URLs, private keys for P2PK, and relay preferences
- Token Storage (kind 7375): Encrypted events containing Cashu proofs (actual ecash)
- Transaction History (kind 7376): Encrypted events recording wallet transactions
- Backup (kind 375): Encrypted backup of wallet private keys
What is NIP-61?
NIP-61 defines "Nutzaps" - a way to send Cashu tokens via Nostr events:
- Mint List (kind 10019): Public event advertising which mints you accept and your P2PK pubkey
- Nutzap (kind 9321): Public event containing P2PK-locked Cashu proofs sent to a recipient
P2PK (Pay-to-Public-Key)
Cashu proofs can be locked to a public key. Only the holder of the corresponding private key can redeem them. This is how nutzaps work - tokens are locked to the recipient's advertised P2PK.
Complete Wallet Implementation
Step 1: Initialize NDK
import NDK, { NDKPrivateKeySigner } from "@nostr-dev-kit/ndk";
const ndk = new NDK({
explicitRelayUrls: [
"wss://relay.damus.io",
"wss://relay.primal.net",
"wss://nos.lol"
],
signer: new NDKPrivateKeySigner("your-nsec-here")
});
await ndk.connect();Step 2: Create a New Wallet
import { NDKCashuWallet } from "@nostr-dev-kit/wallet";
// Create a new wallet with mints and optional relays
const wallet = await NDKCashuWallet.create(
ndk,
["https://mint.minibits.cash/Bitcoin"], // Mint URLs
["wss://relay.damus.io"] // Optional: dedicated wallet relays
);
// The create() method:
// 1. Generates a new private key for P2PK
// 2. Publishes the wallet event (kind 17375)
// 3. Creates and publishes a backup (kind 375)Step 3: Load an Existing Wallet
import { NDKCashuWallet, NDKKind } from "@nostr-dev-kit/wallet";
// Fetch the wallet event
const walletEvent = await ndk.fetchEvent({
kinds: [NDKKind.CashuWallet],
authors: [user.pubkey]
});
if (walletEvent) {
const wallet = await NDKCashuWallet.from(walletEvent);
// Start monitoring for token events
await wallet.start();
// Wait for ready state
wallet.on("ready", () => {
console.log("Wallet loaded, balance:", wallet.balance?.amount);
});
}Step 4: Publish Mint List for Nutzaps
// This publishes kind 10019 so others know how to send you nutzaps
await wallet.publishMintList();
// The mint list contains:
// - Your accepted mints (mint tags)
// - Your nutzap inbox relays (relay tags)
// - Your P2PK pubkey (pubkey tag)Wallet Operations
Depositing (Lightning → Cashu)
// Create a deposit for 1000 sats
const deposit = wallet.deposit(1000, "https://mint.minibits.cash/Bitcoin");
// Listen for events
deposit.on("success", (token) => {
console.log("Deposit successful! Token event:", token.id);
console.log("New balance:", wallet.balance?.amount);
});
deposit.on("error", (error) => {
console.error("Deposit failed:", error);
});
// Start the deposit - returns a Lightning invoice (bolt11)
const bolt11 = await deposit.start();
console.log("Pay this invoice:", bolt11);
// The deposit will automatically poll for payment
// Once paid, the "success" event firesSending Cashu Tokens (Create Shareable Token)
// Create an encoded Cashu token that can be shared
const token = await wallet.send(1000, "Coffee payment");
console.log("Share this token:", token);
// Output: cashuAeyJ0b2tlbiI6W3sicHJvb...Receiving Cashu Tokens
// Receive a Cashu token string
const tokenString = "cashuAeyJ0b2tlbiI6W3sicHJvb...";
const tokenEvent = await wallet.receiveToken(tokenString, "Payment received");
console.log("Token received, new balance:", wallet.balance?.amount);Paying Lightning Invoices
import { LnPaymentInfo } from "@nostr-dev-kit/ndk";
const payment: LnPaymentInfo = {
pr: "lnbc1000n1p..." // bolt11 invoice
};
const confirmation = await wallet.lnPay({ ...payment });
if (confirmation) {
console.log("Payment successful!");
console.log("Preimage:", confirmation.preimage);
}Paying with Cashu (P2PK Transfer)
import { CashuPaymentInfo, NDKZapDetails } from "@nostr-dev-kit/ndk";
const payment: NDKZapDetails<CashuPaymentInfo> = {
amount: 1000, // sats
unit: "sat",
mints: ["https://mint.minibits.cash/Bitcoin"], // acceptable mints
p2pk: "recipient-p2pk-pubkey" // recipient's P2PK from their mint list
};
const confirmation = await wallet.cashuPay(payment);
if (confirmation) {
console.log("Cashu payment sent!");
console.log("Proofs:", confirmation.proofs);
}Minting Raw Proofs
// Create proofs of specific denominations
const result = await wallet.mintNuts([100, 200, 500]); // 800 total sats
if (result) {
console.log("Minted proofs:", result.send);
// These are raw Proof objects, not yet encoded as a token
}Wallet State & Balance
Checking Balance
// Total available balance
const balance = wallet.balance?.amount;
console.log("Total balance:", balance, "sats");
// Balance per mint
const mintBalances = wallet.mintBalances;
for (const [mint, balance] of Object.entries(mintBalances)) {
console.log(`${mint}: ${balance} sats`);
}
// Check specific mint balance
const mintBalance = wallet.mintBalance("https://mint.example.com");Finding Mints with Sufficient Balance
// Get mints that have at least 5000 sats available
const mints = wallet.getMintsWithBalance(5000);
console.log("Mints with 5000+ sats:", mints);Accessing Proofs
// Get all proofs for a specific mint
const proofs = await wallet.state.getProofs({
mint: "https://mint.example.com",
onlyAvailable: true // exclude reserved proofs
});
// Get proofs across all mints
const allProofs = await wallet.state.getProofs({ onlyAvailable: true });Wallet Events
// Wallet is ready and synced
wallet.on("ready", () => {
console.log("Wallet ready!");
});
// Balance changed
wallet.on("balance_updated", () => {
console.log("New balance:", wallet.balance?.amount);
});
// Status changed
wallet.on("status_changed", (status) => {
// NDKWalletStatus: INITIAL, LOADING, READY
console.log("Status:", status);
});
// Warning (e.g., duplicate token detected)
wallet.on("warning", ({ msg, event, relays }) => {
console.warn("Wallet warning:", msg);
});Nutzap Monitor (Receiving Nutzaps)
The NDKNutzapMonitor automatically detects and redeems incoming nutzaps.
Basic Setup
import { NDKNutzapMonitor, NDKCashuWallet } from "@nostr-dev-kit/wallet";
import { NDKUser } from "@nostr-dev-kit/ndk";
// Create user and wallet
const user = ndk.activeUser!;
const wallet = await loadOrCreateWallet(); // your wallet loading logic
// Create monitor
const monitor = new NDKNutzapMonitor(ndk, user, {
mintList: wallet.mintList, // optional: your mint list for validation
store: myNutzapStore // optional: persistence for nutzap states
});
// Assign wallet for redemption
monitor.wallet = wallet;
// Start monitoring
await monitor.start({});Monitor Events
// New nutzap seen
monitor.on("seen", (nutzap) => {
console.log("New nutzap from:", nutzap.pubkey);
console.log("Amount:", nutzap.amount, "sats");
});
// Nutzap successfully redeemed
monitor.on("redeemed", (nutzaps, amount) => {
console.log(`Redeemed ${nutzaps.length} nutzaps for ${amount} sats`);
});
// Nutzap state changed
monitor.on("state_changed", (nutzapId, status) => {
// NdkNutzapStatus: INITIAL, PROCESSING, REDEEMED, SPENT,
// MISSING_PRIVKEY, INVALID_NUTZAP, PERMANENT_ERROR
console.log(`Nutzap ${nutzapId} state: ${status}`);
});
// Failed to redeem
monitor.on("failed", (nutzap, error) => {
console.error("Failed to redeem nutzap:", error);
});
// Nutzap from unknown mint
monitor.on("seen_in_unknown_mint", (nutzap) => {
console.warn("Nutzap from mint not in your list:", nutzap.mint);
});Nutzap State Persistence
Implement NDKNutzapMonitorStore for persistence:
import { NDKNutzapMonitorStore, NDKNutzapState } from "@nostr-dev-kit/wallet";
const store: NDKNutzapMonitorStore = {
async getAllNutzaps(): Promise<Map<string, NDKNutzapState>> {
// Load from your database
const states = await db.loadNutzapStates();
return new Map(states);
},
async setNutzapState(id: string, state: Partial<NDKNutzapState>): Promise<void> {
// Save to your database
await db.updateNutzapState(id, state);
}
};
const monitor = new NDKNutzapMonitor(ndk, user, { store });Private Key Management
The monitor automatically loads private keys from:
- The assigned wallet's privkeys
- The NDK signer (if it's a private key signer)
- Backup events (kind 375) and wallet config events (kind 17375)
// Manually add a private key if needed
import { NDKPrivateKeySigner } from "@nostr-dev-kit/ndk";
const signer = new NDKPrivateKeySigner("nsec...");
await monitor.addPrivkey(signer);Sending Nutzaps
To send a nutzap, you need the recipient's mint list:
import { NDKCashuMintList, NDKKind, NDKNutzap } from "@nostr-dev-kit/ndk";
// Fetch recipient's mint list
const mintListEvent = await ndk.fetchEvent({
kinds: [NDKKind.CashuMintList],
authors: [recipientPubkey]
});
if (!mintListEvent) {
throw new Error("Recipient has no mint list - cannot send nutzap");
}
const mintList = NDKCashuMintList.from(mintListEvent);
// Check if we share any mints
const sharedMints = wallet.mints.filter(m => mintList.mints.includes(m));
if (sharedMints.length === 0) {
throw new Error("No shared mints with recipient");
}
// Create proofs locked to recipient's P2PK
const payment = await wallet.cashuPay({
amount: 1000,
unit: "sat",
mints: sharedMints,
p2pk: mintList.p2pk // recipient's P2PK pubkey
});
// Create and publish nutzap event
const nutzap = new NDKNutzap(ndk);
nurzap.proofs = payment.proofs;
nurzap.mint = payment.mint;
nurzap.tags.push(["p", recipientPubkey]); // tag the recipient
// Optionally reference the event being zapped
// nutzap.tags.push(["e", eventId]);
await nutzap.publish(mintList.relaySet); // publish to recipient's nutzap relaysWallet Configuration Management
Updating Mints
// Add a mint
wallet.mints = [...wallet.mints, "https://new-mint.example.com"];
await wallet.publish();
// Remove a mint
wallet.mints = wallet.mints.filter(m => m !== "https://old-mint.com");
await wallet.publish();
// Or use update() for atomic changes
await wallet.update({
mints: ["https://mint1.com", "https://mint2.com"],
relays: ["wss://relay1.com", "wss://relay2.com"]
});Updating Relays
import { NDKRelaySet } from "@nostr-dev-kit/ndk";
// Set specific relays for wallet events
wallet.relaySet = NDKRelaySet.fromRelayUrls(
["wss://relay1.com", "wss://relay2.com"],
ndk
);
await wallet.publish();
// Clear to use NIP-65 fallback
wallet.relaySet = undefined;
await wallet.publish();Backup
// Create and publish a backup event (kind 375)
const backup = await wallet.backup(true); // true = publish immediately
// Create without publishing
const backupEvent = await wallet.backup(false);
// ... review or modify ...
await backupEvent.save(wallet.relaySet);Mint Discovery (NIP-87)
NIP-87 enables decentralized mint discovery through announcements and recommendations.
Event Kinds for Mint Discovery
| Kind | Name | Description |
| 38172 | CashuMintAnnouncement | Mint publishes its info (url, name, nuts supported, network) |
| 38000 | EcashMintRecommendation | Users recommend mints with reviews |
Using the Mint Discovery Store
import { createMintDiscoveryStore } from '@nostr-dev-kit/wallet';
const store = createMintDiscoveryStore(ndk, {
network: 'mainnet', // Filter by network ('mainnet' | 'testnet')
minRecommendations: 2, // Minimum recommendations required
limit: 100, // Max mints to fetch
followUsers: ['pubkey1', 'pubkey2'], // WoT-based: only recs from these users
timeout: 10000 // Auto-stop after ms
});
// Subscribe to state changes (zustand store)
store.subscribe((state) => {
console.log('Mints found:', state.mints.length);
console.log('Progress:', state.progress);
});
// Get top mints by recommendation score
const topMints = store.getState().getTopMints(10, 2);
// Search mints by name/url/description
const results = store.getState().searchMints('bitcoin');
// Get specific mint by URL
const mint = store.getState().getMint('https://mint.example.com');
// Recommend a mint (publishes kind 38000 event)
await store.getState().recommendMint('https://mint.example.com', 'Fast and reliable!');
// Stop subscriptions when done
store.getState().stop();MintMetadata Interface
interface MintMetadata {
url: string;
identifier?: string;
network?: string; // 'mainnet' | 'testnet'
nuts: string[]; // Supported NUTs (Cashu protocol extensions)
name?: string;
description?: string;
icon?: string;
longDescription?: string;
contact?: { nostr?: string; email?: string };
motd?: string; // Message of the day
recommendations: NDKMintRecommendation[];
score: number; // Number of recommendations
isOnline?: boolean; // Verified by fetching /v1/info
lastUpdated: number;
}Web of Trust Filtering
Filter recommendations to only include those from users you follow for better trust:
// Get user's follow list
const follows = await ndk.activeUser.follows();
const followPubkeys = Array.from(follows).map(u => u.pubkey);
const store = createMintDiscoveryStore(ndk, {
followUsers: followPubkeys,
network: 'mainnet'
});Selecting the Best Mint Programmatically
async function selectBestMint(ndk: NDK): Promise<string | null> {
const store = createMintDiscoveryStore(ndk, {
network: 'mainnet',
timeout: 5000
});
// Wait for discovery to complete
await new Promise(resolve => setTimeout(resolve, 5000));
// Get top mints that are online and have recommendations
const topMints = store.getState().getTopMints(5, 1);
const onlineMints = topMints.filter(m => m.isOnline);
store.getState().stop();
return onlineMints[0]?.url ?? null;
}How Mint Discovery Works
- Mint Announcements (kind 38172): Mints publish addressable events announcing their existence with metadata (URL, supported NUTs, network, name, description, icon)
- User Recommendations (kind 38000): Users publish recommendations for mints they trust, with optional reviews
- Score Calculation: Mints are scored by the number of recommendations they receive
- Online Verification: The store fetches
/v1/infofrom each mint to verify it's online and get additional metadata - Caching: Mint info is cached via NDK's cache adapter for performance
Transaction History
Fetching Transactions
const transactions = await wallet.fetchTransactions();
for (const tx of transactions) {
console.log({
id: tx.id,
direction: tx.direction, // "in" or "out"
amount: tx.amount,
timestamp: new Date(tx.timestamp * 1000),
description: tx.description,
fee: tx.fee,
mint: tx.mint
});
}Real-time Transaction Updates
const unsubscribe = wallet.subscribeTransactions((tx) => {
console.log("New transaction:", tx);
});
// Later: stop subscription
unsubscribe();Mint Information Caching
For performance, cache mint info and keys:
import { createMintCacheCallbacks } from "@nostr-dev-kit/wallet";
// If your cache adapter supports generic caching
if (ndk.cacheAdapter?.getCacheData && ndk.cacheAdapter?.setCacheData) {
const callbacks = createMintCacheCallbacks(ndk.cacheAdapter);
wallet.onMintInfoNeeded = callbacks.onMintInfoNeeded;
wallet.onMintInfoLoaded = callbacks.onMintInfoLoaded;
wallet.onMintKeysNeeded = callbacks.onMintKeysNeeded;
wallet.onMintKeysLoaded = callbacks.onMintKeysLoaded;
}
// Or implement custom caching
wallet.onMintInfoNeeded = async (mint: string) => {
return await myCache.get(`mint-info:${mint}`);
};
wallet.onMintInfoLoaded = (mint: string, info: GetInfoResponse) => {
myCache.set(`mint-info:${mint}`, info);
};Complete Example: Full Wallet App
import NDK, { NDKPrivateKeySigner, NDKKind, NDKUser } from "@nostr-dev-kit/ndk";
import { NDKCashuWallet, NDKNutzapMonitor } from "@nostr-dev-kit/wallet";
async function main() {
// 1. Initialize NDK
const ndk = new NDK({
explicitRelayUrls: ["wss://relay.damus.io", "wss://nos.lol"],
signer: new NDKPrivateKeySigner(process.env.NSEC!)
});
await ndk.connect();
const user = await ndk.signer!.user();
// 2. Load or create wallet
let wallet: NDKCashuWallet;
const existingWallet = await ndk.fetchEvent({
kinds: [NDKKind.CashuWallet],
authors: [user.pubkey]
});
if (existingWallet) {
wallet = (await NDKCashuWallet.from(existingWallet))!;
await wallet.start();
} else {
wallet = await NDKCashuWallet.create(
ndk,
["https://mint.minibits.cash/Bitcoin"],
["wss://relay.damus.io"]
);
}
// 3. Publish mint list for receiving nutzaps
await wallet.publishMintList();
// 4. Start nutzap monitor
const monitor = new NDKNutzapMonitor(ndk, user, {});
monitor.wallet = wallet;
monitor.on("redeemed", (nutzaps, amount) => {
console.log(`Received ${amount} sats via nutzap!`);
});
await monitor.start({});
// 5. Ready to use
console.log("Wallet ready!");
console.log("Balance:", wallet.balance?.amount, "sats");
console.log("Mints:", wallet.mints);
console.log("P2PK:", wallet.p2pk);
// Example: Create a deposit
const deposit = wallet.deposit(1000);
deposit.on("success", () => console.log("Deposit received!"));
const invoice = await deposit.start();
console.log("Pay this invoice:", invoice);
}
main().catch(console.error);Error Handling Best Practices
// Wrap operations in try-catch
try {
await wallet.lnPay({ pr: bolt11 });
} catch (error) {
if (error.message.includes("insufficient balance")) {
console.error("Not enough funds");
} else if (error.message.includes("mint")) {
console.error("Mint error:", error.message);
} else {
console.error("Payment failed:", error);
}
}
// Handle nutzap redemption errors
monitor.on("failed", (nutzap, error) => {
if (error.includes("already spent")) {
// Token was claimed by someone else
} else if (error.includes("privkey")) {
// Missing private key for P2PK
} else {
// Other error
}
});Security Considerations
- Private Keys: The wallet generates a separate private key for P2PK. This is stored encrypted in the wallet event (kind 17375) and backed up in kind 375 events.
- Encryption: All sensitive wallet data uses NIP-44 encryption to self. Only kinds 10019 (mint list) and 9321 (nutzap) are public.
- Relay Selection: Use trusted relays for wallet events. Consider using different relays for wallet state vs. regular Nostr activity.
- Mint Trust: Only use mints you trust. The mint can see all transactions and could potentially rug (refuse to honor tokens).
- Proof Validation: Always validate proofs are unspent before accepting. The nutzap monitor handles this automatically.
Troubleshooting
Wallet Not Loading
- Ensure the user is authenticated (NDK signer is set)
- Check that relays are connected
- Verify kind 17375 event exists for the user
Nutzaps Not Being Received
- Verify mint list (kind 10019) is published
- Check that P2PK is set correctly in mint list
- Ensure nutzap relays are in your relay set
- Verify you have the private key matching your P2PK
Balance Not Updating
- Call
wallet.start()to begin monitoring - Check for
balance_updatedevents - Verify token events (kind 7375) are being received
Payment Failures
- Check mint connectivity
- Verify sufficient balance in a shared mint
- For nutzaps: ensure shared mints with recipient
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

