bambu-studio-ai
Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Solidity language server providing smart contract development support including compilation, linting, security analysis, and code intelligence for .sol files. Use when working with Ethereum smart contracts, Substrate pallets, or any Solidity code that needs compilation, security checks, gas optimization, or code navigation. Essential for ClawChain pallet development.
请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。
SkillHub CLI
skillhub install bowen31337/solidity-lsp打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。
将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。
Solidity language server integration providing comprehensive smart contract development support through solc (Solidity compiler) and solhint (linter).
.sol
Install Solidity compiler and linter:
# Solidity compiler
npm install -g solc
# Solidity linter
npm install -g solhint
Verify installation:
solcjs --version
solhint --version
solcjs --bin --abi contract.sol
Compile with optimization:
solcjs --optimize --bin --abi contract.sol
Run solhint on a file:
solhint contracts/MyContract.sol
Run on entire project:
solhint 'contracts/**/*.sol'
solhint includes security rules by default. For advanced security analysis, consider:
# Install slither (requires Python)
pip3 install slither-analyzer
# Run security analysis
slither contracts/
Create .solhint.json in project root:
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["warn", {"ignoreConstructors": true}],
"max-line-length": ["warn", 120],
"not-rely-on-time": "warn",
"avoid-low-level-calls": "warn",
"no-inline-assembly": "warn"
}
}
For full development environments, see references/frameworks.md.
When developing smart contracts:
solhint to catch issues earlysolcjs t...这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。
# Solidity LSP
Solidity language server integration providing comprehensive smart contract development support through solc (Solidity compiler) and solhint (linter).
## Capabilities
- **Compilation**: Compile Solidity smart contracts with solc
- **Linting**: Static analysis with solhint for best practices and security
- **Security**: Detect common vulnerabilities (reentrancy, overflow, etc.)
- **Gas optimization**: Identify expensive operations
- **Code intelligence**: Syntax highlighting, error detection
- **Supported extensions**: `.sol`
## Installation
Install Solidity compiler and linter:
```bash
# Solidity compiler
npm install -g solc
# Solidity linter
npm install -g solhint
```
Verify installation:
```bash
solcjs --version
solhint --version
```
## Usage
### Compile Solidity Contract
```bash
solcjs --bin --abi contract.sol
```
Compile with optimization:
```bash
solcjs --optimize --bin --abi contract.sol
```
### Lint Contract
Run solhint on a file:
```bash
solhint contracts/MyContract.sol
```
Run on entire project:
```bash
solhint 'contracts/**/*.sol'
```
### Security Analysis
solhint includes security rules by default. For advanced security analysis, consider:
```bash
# Install slither (requires Python)
pip3 install slither-analyzer
# Run security analysis
slither contracts/
```
## Configuration
### solhint Configuration
Create `.solhint.json` in project root:
```json
{
"extends": "solhint:recommended",
"rules": {
"compiler-version": ["error", "^0.8.0"],
"func-visibility": ["warn", {"ignoreConstructors": true}],
"max-line-length": ["warn", 120],
"not-rely-on-time": "warn",
"avoid-low-level-calls": "warn",
"no-inline-assembly": "warn"
}
}
```
### Hardhat/Foundry Integration
For full development environments, see `references/frameworks.md`.
## Integration Pattern
When developing smart contracts:
1. **Write**: Edit Solidity code
2. **Lint**: Run `solhint` to catch issues early
3. **Compile**: Use `solcjs` t...Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...
Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...
Agents can sign plugins, rotate credentials without losing identity, and publicly attest to behavior.
Send and receive P2P messages using disposable numbers and PINs. No servers, no accounts. Use for human notifications, approval flows, and agent-to-agent communication.