Stellar Dev
VelaPayments/vela-payments
End-to-end Stellar development playbook. An agent skill from VelaPayments/vela-payments.
Comprehensive security development guide for Mobazha decentralized marketplace covering XSS prevention, Web3 transaction safety, key management, and input validation.
$ npx skills add mobazha/mobazha-unified --skill security-guide -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install mobazha/mobazha-unified security-guide --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.cursor/skills/security-guide .claude/skills/security-guide && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "security-guide" agent skill from https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guide into .claude/skills/security-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-guide", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guideType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add mobazha/mobazha-unified --skill security-guide -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install mobazha/mobazha-unified security-guide --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.cursor/skills/security-guide .agents/skills/security-guide && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "security-guide" agent skill from https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guide into .agents/skills/security-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-guide", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mobazha/mobazha-unified --skill security-guide -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install mobazha/mobazha-unified security-guide --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.cursor/skills/security-guide .cursor/skills/security-guide && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "security-guide" agent skill from https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guide into .cursor/skills/security-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-guide", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/mobazha/mobazha-unified.git --path .cursor/skills/security-guide--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add mobazha/mobazha-unified --skill security-guide -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install mobazha/mobazha-unified security-guide --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.cursor/skills/security-guide .gemini/skills/security-guide && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "security-guide" agent skill from https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guide into .gemini/skills/security-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-guide", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install mobazha/mobazha-unified security-guideInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add mobazha/mobazha-unified --skill security-guide -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .github/skills && cp -r skills-src/.cursor/skills/security-guide .github/skills/security-guide && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "security-guide" agent skill from https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guide into .github/skills/security-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-guide", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add mobazha/mobazha-unified --skill security-guide -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install mobazha/mobazha-unified security-guide --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/mobazha/mobazha-unified.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.cursor/skills/security-guide .opencode/skills/security-guide && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "security-guide" agent skill from https://github.com/mobazha/mobazha-unified/tree/main/.cursor/skills/security-guide into .opencode/skills/security-guide/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "security-guide", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
security-guideComprehensive security development guide for Mobazha decentralized marketplace covering XSS prevention, Web3 transaction safety, key management, and input validation.
Security Guide is an agent skill from mobazha/mobazha-unified. Comprehensive security development guide for Mobazha decentralized marketplace covering XSS prevention, Web3 transaction safety, key management, and input validation. Use when working with user input, wallet operations, transactions, or security-sensitive features, "安全", "XSS", "注入", "钱包安全", "合约安全", "密钥管理".
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Security, covering Web application vulnerabilities, Crypto and DeFi analysis and Cryptography. The repository describes itself as: Open-source commerce frontend for storefronts, marketplaces, checkout, and seller management. The licence is MPL-2.0.
Read from SKILL.md and the folder at commit 156c699. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Shell commands in SKILL.md call:
npxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names these keys or tokens, usually read from environment variables:
API_KEYFrom names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Security Guide loads about 1.7k tokens when it runs. Until then it costs about 81 tokens; SKILL.md has 227 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from mobazha/mobazha-unified at commit 156c699, republished under its MPL-2.0 licence (© mobazha). 227 words, ~1,728 tokens.
.claude/skills/security-guide/SKILL.md (or your agent's skills folder).Mobazha 去中心化市场的安全开发规范和最佳实践。
项目已有的安全基础设施:
packages/core/utils/htmlUtils.ts — DOMPurify HTML 清理packages/core/services/api/wallet.ts — 地址验证 APIbignumber.js — 精确金额计算唯一允许的方式:使用项目已有的 sanitizeHtml():
import { sanitizeHtml, stripHtmlTags } from '@mobazha/core';
// 需要渲染 HTML 时(商品描述、店铺介绍)
<div dangerouslySetInnerHTML={{ __html: sanitizeHtml(htmlContent) }} />
// 只需要纯文本时
const plainText = stripHtmlTags(htmlContent);配置说明(htmlUtils.ts):
h1-h6, p, a, img, ul, ol, li, blockquote, code, pre, br, hr, strong, em, span, div, table, tr, td, th<a> 添加 target="_blank" rel="noopener noreferrer nofollow"<script>, <iframe>, <object>, <embed>, on* 事件属性// ❌ 危险
window.location.href = userInput;
<a href={userInput}>链接</a>
// ✅ 安全
const safeUrl = new URL(userInput, window.location.origin);
if (safeUrl.protocol === 'https:' || safeUrl.protocol === 'http:') {
// 允许导航
}每次发送链上交易前,必须验证:
// 1. 钱包已连接
if (!walletProvider) throw new Error('钱包未连接');
// 2. 链正确
const currentChainId = await provider.getNetwork().then(n => n.chainId);
if (currentChainId !== expectedChainId) {
await switchNetwork(expectedChain);
}
// 3. 余额充足(含 gas)
const balance = await provider.getBalance(address);
const gasEstimate = await contract.method.estimateGas(...args);
const gasPrice = await provider.getFeeData();
const totalCost = amount + gasEstimate * gasPrice.maxFeePerGas;
if (balance < totalCost) throw new Error('余额不足');
// 4. 参数验证
const validAddress = ethers.getAddress(recipientAddress); // 会抛异常如果无效项目的 Escrow 服务(packages/core/services/payment/escrow.ts)遵循:
// 创建 Escrow — 必须验证
async createNativeEscrow(params: EscrowParams) {
// ✅ 地址规范化
const seller = ethers.getAddress(params.sellerAddress);
const moderator = ethers.getAddress(params.moderatorAddress);
// ✅ Gas 预估
const gasEstimate = await contract.createEscrow.estimateGas(...);
// ✅ 交易确认(UI 层面必须二次确认)
const tx = await contract.createEscrow(...);
const receipt = await tx.wait(); // 等待链上确认
return receipt;
}// ✅ 使用 EIP-712 结构化签名(用户可以看到签名内容)
const signature = await signer.signTypedData(domain, types, value);
// ⚠️ 避免盲签(用户无法理解签名内容)
// 仅在无法使用 EIP-712 时才使用 personal_sign
const signature = await signer.signMessage(message);import BigNumber from 'bignumber.js';
// ✅ 所有金额计算使用 BigNumber
const total = new BigNumber(price).times(quantity);
const fee = total.times(0.01).decimalPlaces(8, BigNumber.ROUND_HALF_UP);
// ✅ 链上金额转换
import { toMinimalUnit, fromMinimalUnit } from '@mobazha/core';
const wei = toMinimalUnit(amount, decimals); // 用户金额 → 链上最小单位
const display = fromMinimalUnit(wei, decimals); // 链上最小单位 → 显示金额// ❌ 浮点运算精度丢失
0.1 + 0.2; // 0.30000000000000004
// ❌ toFixed 用于计算
parseFloat((0.1 + 0.2).toFixed(2)); // 可能不精确
// ✅ BigNumber 全程处理
new BigNumber('0.1').plus('0.2').toString(); // "0.3"// ❌ 绝对禁止
localStorage.setItem('privateKey', key);
localStorage.setItem('mnemonic', phrase);
console.log('Token:', accessToken);
const API_KEY = 'sk-xxxxx'; // 硬编码密钥
// ✅ 敏感操作通过后端 API
const mnemonic = await walletApi.getMnemonic(); // 需要认证
await walletApi.restoreWallet(mnemonic); // 立即使用,不存储| 数据类型 | 存储位置 | 示例 |
|---|---|---|
| 主题偏好 | localStorage | mobazha-theme |
| 购物车 | localStorage (Zustand persist) | mobazha-cart-storage |
| UI 状态 | localStorage/sessionStorage | pwa-install-dismissed |
| 用户 session | Cookie (httpOnly, 后端设置) | — |
| 私钥/助记词 | ❌ 禁止前端存储 | — |
| 输入类型 | 验证方式 |
|---|---|
| 链上地址 | ethers.getAddress(addr) + walletApi.validateAddress() |
| 金额 | !isNaN() + > 0 + <= balance + BigNumber 精度 |
| 商品价格 | parseFloat(price) > 0 + BigNumber |
| HTML 内容 | sanitizeHtml() |
| URL | new URL() + 协议白名单 |
| 搜索输入 | 长度限制 + 特殊字符转义 |
// ❌ SQL 注入风险
query := fmt.Sprintf("SELECT * FROM users WHERE name = '%s'", userInput)
// ✅ 参数化查询
query := "SELECT * FROM users WHERE name = $1"
db.Query(query, userInput)// ❌ 日志泄露敏感数据
log.Printf("User mnemonic: %s, token: %s", mnemonic, token)
// ✅ 日志脱敏
log.Printf("User authenticated: peerID=%s", peerID)Go 后端安全要点:
api/gateway.go)filepath.Clean() 防止路径遍历MaxBytesReader 限制请求体大小// ❌ 重入攻击风险
function withdraw(uint amount) external {
payable(msg.sender).transfer(amount); // 外部调用在状态变更前
balances[msg.sender] -= amount;
}
// ✅ Checks-Effects-Interactions 模式
function withdraw(uint amount) external nonReentrant {
require(balances[msg.sender] >= amount, "Insufficient");
balances[msg.sender] -= amount; // 先变更状态
payable(msg.sender).transfer(amount); // 后外部调用
}合约安全要点:
ReentrancyGuard 防止重入攻击bsc-smart-contracts/contracts/escrow/EscrowSpec.mdnpx hardhat testsanitizeHtml() ?filepath.Clean() 处理?© mobazha, MPL-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .cursor/skills/security-guide of mobazha/mobazha-unified.
Open the folder on GitHubat commit 156c699
Security Guide next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Security Guide this skillmobazha/mobazha-unified | 165 | — | ~1.7k | Automated safety check: Pass | MPL-2.0 | |
| Stellar DevVelaPayments/vela-payments | 131 | — | ~1.8k | Automated safety check: Pass | MIT | |
| near-api-js Developer Guideinternet-court/internet-court-skill | 6.4k | 1 repos | ~4.1k | Automated safety check: Pass | Custom licence | |
| Systematic Attackingmtarcure/claude-vibe-squad | 163 | — | ~3.6k | Automated safety check: Pass | MIT | |
| Binance Token AuditTermiX-official/cryptoclaw | 100 | — | ~695 | Automated safety check: Pass | MIT | |
| Solana Devsolana-foundation/solana-dev-skill | 574 | — | ~3.8k | Automated safety check: Pass | MIT |
VelaPayments/vela-payments
End-to-end Stellar development playbook. An agent skill from VelaPayments/vela-payments.
internet-court/internet-court-skill
Reference for building with near-api-js v7 in TypeScript or JavaScript: accounts, keys, signing, contract calls, tokens, unit conversion and meta-transactions on NEAR.
mtarcure/claude-vibe-squad
A skill your agent uses for ALL authorized offensive-security / bug-bounty work — the single method to find, chain, prove, dedup, and package the highest-value (High/Critical) findings across every…
TermiX-official/cryptoclaw
Binance Web3 official skill — security audit for token contracts, detecting honeypots, rug pulls, and malicious functions across BSC, Base, Solana, and Ethereum.
solana-foundation/solana-dev-skill
A skill your agent uses when user asks to "build a Solana dapp", "write an Anchor program", "create a token", "debug Solana errors", "set up wallet connection", "test my Solana program", "fuzz my…
getsentry/skills
Security code review for vulnerabilities. An agent skill from getsentry/skills.
mobazha/mobazha-unified
Accessibility guide for Mobazha following WCAG 2.1 AA standards including color contrast, reduced motion, ARIA patterns, keyboard navigation, focus management, and screen reader testing.
mobazha/mobazha-unified
Look up Mobazha backend API endpoints, request/response formats, and field mappings.
mobazha/mobazha-unified
Review code for quality, architecture consistency, and adherence to Mobazha project standards using confidence-based filtering.
mobazha/mobazha-unified
Simplify and refine recently written code for clarity, consistency, and maintainability while preserving all functionality.
mobazha/mobazha-unified
Generate commit messages and run pre-commit validation following Mobazha conventions.
mobazha/mobazha-unified
Create and modify UI components following Mobazha conventions including directory structure, spacing standards, accessibility, and testing.
Categories
Comprehensive security development guide for Mobazha decentralized marketplace covering XSS prevention, Web3 transaction safety, key management, and input validation. Security Guide is an agent skill from mobazha/mobazha-unified. Comprehensive security development guide for Mobazha decentralized marketplace covering XSS prevention, Web3 transaction safety, key management, and input validation.
Security Guide fits situations like: working with user input; wallet operations; security-sensitive features.
Run `npx skills add mobazha/mobazha-unified --skill security-guide -a claude-code`. Or copy the skill folder (.cursor/skills/security-guide in mobazha/mobazha-unified) into .claude/skills/security-guide in your project. Claude Code loads it when a task matches its description.
Run `npx skills add mobazha/mobazha-unified --skill security-guide -a codex`. Or copy the skill folder (.cursor/skills/security-guide in mobazha/mobazha-unified) into .agents/skills/security-guide in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add mobazha/mobazha-unified --skill security-guide -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/security-guide, .gemini/skills/security-guide, .github/skills/security-guide and .opencode/skills/security-guide in your project.
Going by SKILL.md and its folder, Security Guide needs the command-line tools its instructions call (npx) and credentials named API_KEY. Our summary lists: Node.js; A credential in API_KEY.
SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Security Guide is published under the MPL-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Security Guide: Stellar Dev (VelaPayments/vela-payments, 131 stars), near-api-js Developer Guide (internet-court/internet-court-skill, 6.4k stars), Systematic Attacking (mtarcure/claude-vibe-squad, 163 stars) and Binance Token Audit (TermiX-official/cryptoclaw, 100 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
mobazha (a GitHub organization) maintains it in mobazha/mobazha-unified, which has 165 GitHub stars. The repository holds 29 skills in this directory. The repository was last updated on October 3, 2026.
Source: mobazha/mobazha-unified on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.