Skip to content

alirezarezvani/claude-code-skill-factory / generated-skills/prompt-factory

prompt-factory

Verified

World-class prompt powerhouse that generates production-ready mega-prompts for any role, industry, and task through intelligent 7-question flow, 69 comprehensive presets across 15 professional domains (technical, business, creative, legal, finance, HR, design, customer, executive, manufacturing, R&D, regulatory, specialized-technical, research, creative-media), multiple output formats (XML/Claude/ChatGPT/Gemini), quality validation gates, and contextual best practices from OpenAI/Anthropic/Google. Supports both core and advanced modes with testing scenarios and prompt variations.

FileKindSize
CHANGELOG.mdmarkdown13.2 KB
HOW_TO_USE.mdmarkdown29.0 KB
README.mdmarkdown9.3 KB
SKILL.mdskill md36.2 KB
examples/example-1-fullstack-api.mdmarkdown13.7 KB
examples/example-2-marketing-strategy.mdmarkdown12.4 KB
examples/example-3-product-prd.mdmarkdown13.7 KB
examples/example-4-devops-infrastructure.mdmarkdown19.6 KB
examples/example-5-content-calendar.mdmarkdown17.7 KB
outputs/.gitkeepother0 B
references/best-practices-reference.mdmarkdown14.2 KB
requirements.txtmanifest249 B
scripts/batch_generator.pyscript9.2 KB
scripts/generate_prompt.pyscript29.0 KB
scripts/optimizer.pyscript22.2 KB
scripts/validator.pyscript18.9 KB
templates/presets/business/business-analyst.mdmarkdown8.4 KB
templates/presets/business/marketing-manager.mdmarkdown6.3 KB
templates/presets/business/marketing-strategist.mdmarkdown3.7 KB
templates/presets/business/operations-manager.mdmarkdown7.6 KB
templates/presets/business/product-engineer.mdmarkdown7.4 KB
templates/presets/business/product-manager.mdmarkdown4.3 KB
templates/presets/business/product-owner.mdmarkdown7.7 KB
templates/presets/business/project-manager.mdmarkdown7.2 KB
templates/presets/business/sales-business-manager.mdmarkdown7.7 KB
templates/presets/creative-media/copywriter.mdmarkdown10.9 KB
templates/presets/creative-media/seo-specialist.mdmarkdown14.4 KB
templates/presets/creative-media/social-media-manager.mdmarkdown13.3 KB
templates/presets/creative-media/video-producer.mdmarkdown15.0 KB
templates/presets/creative/content-strategist.mdmarkdown5.0 KB
templates/presets/creative/ux-researcher.mdmarkdown7.7 KB
templates/presets/customer/account-manager.mdmarkdown14.6 KB
templates/presets/customer/customer-experience-manager.mdmarkdown15.3 KB
templates/presets/customer/customer-success-manager.mdmarkdown13.8 KB
templates/presets/customer/support-engineer.mdmarkdown13.7 KB
templates/presets/design/brand-designer.mdmarkdown11.3 KB
templates/presets/design/graphic-designer.mdmarkdown9.9 KB
templates/presets/design/product-designer.mdmarkdown10.8 KB
templates/presets/design/ui-ux-designer.mdmarkdown9.9 KB
templates/presets/executive/ceo-founder.mdmarkdown13.5 KB
templates/presets/executive/chief-marketing-officer.mdmarkdown14.9 KB
templates/presets/executive/chief-operations-officer.mdmarkdown15.3 KB
templates/presets/executive/chief-product-officer.mdmarkdown14.6 KB
templates/presets/executive/chief-strategy-officer.mdmarkdown14.4 KB
templates/presets/executive/cto-vp-engineering.mdmarkdown14.2 KB
templates/presets/executive/general-manager.mdmarkdown13.8 KB
templates/presets/finance/accountant-tax.mdmarkdown12.8 KB
templates/presets/finance/cfo-controller.mdmarkdown13.0 KB
templates/presets/finance/financial-analyst.mdmarkdown12.5 KB
templates/presets/finance/investment-analyst.mdmarkdown13.3 KB
templates/presets/hr/compensation-analyst.mdmarkdown15.3 KB
templates/presets/hr/hr-manager.mdmarkdown14.2 KB
templates/presets/hr/learning-development.mdmarkdown15.9 KB
templates/presets/hr/talent-acquisition.mdmarkdown14.4 KB
templates/presets/legal/compliance-officer.mdmarkdown10.9 KB
templates/presets/legal/contract-manager.mdmarkdown11.2 KB
templates/presets/legal/legal-counsel.mdmarkdown10.0 KB
templates/presets/legal/regulatory-affairs.mdmarkdown12.8 KB
templates/presets/manufacturing/industrial-designer.mdmarkdown16.4 KB
templates/presets/manufacturing/manufacturing-engineer.mdmarkdown13.7 KB
templates/presets/manufacturing/quality-engineer.mdmarkdown15.5 KB
templates/presets/manufacturing/supply-chain-manager.mdmarkdown15.0 KB
templates/presets/rd/ai-rd-expert.mdmarkdown19.7 KB
templates/presets/rd/clinical-specialist.mdmarkdown18.2 KB
templates/presets/regulatory/quality-management-responsible.mdmarkdown16.0 KB
templates/presets/research/market-researcher.mdmarkdown15.9 KB
templates/presets/research/quantitative-analyst.mdmarkdown14.9 KB
templates/presets/research/research-scientist.mdmarkdown14.8 KB
templates/presets/specialized-technical/blockchain-developer.mdmarkdown10.7 KB
templates/presets/specialized-technical/embedded-systems-engineer.mdmarkdown11.0 KB
templates/presets/specialized-technical/game-developer.mdmarkdown11.4 KB
templates/presets/specialized-technical/ml-engineer.mdmarkdown10.4 KB
templates/presets/specialized-technical/network-engineer.mdmarkdown11.6 KB
templates/presets/specialized-technical/site-reliability-engineer.mdmarkdown12.0 KB
templates/presets/specialized/aeo-specialist.mdmarkdown16.1 KB
templates/presets/specialized/sales-engineer.mdmarkdown5.9 KB
templates/presets/specialized/technical-writer.mdmarkdown4.6 KB
templates/presets/technical/cloud-architect.mdmarkdown8.0 KB
templates/presets/technical/data-scientist.mdmarkdown7.5 KB
templates/presets/technical/database-engineer.mdmarkdown8.2 KB
templates/presets/technical/devops-engineer.mdmarkdown4.7 KB
templates/presets/technical/fullstack-engineer.mdmarkdown3.3 KB
templates/presets/technical/mobile-engineer.mdmarkdown7.5 KB
templates/presets/technical/qa-engineer.mdmarkdown8.2 KB
templates/presets/technical/security-engineer.mdmarkdown8.5 KB

templates/presets/specialized-technical/blockchain-developer.md

View on GitHub
---
preset_name: blockchain-developer
category: specialized-technical
role: Senior Blockchain Developer
domain: Blockchain & Web3 Development
output_type: smart contracts, dApps, blockchain infrastructure
complexity: expert
---

# Senior Blockchain Developer Preset

## Default Configuration

**Role:** Senior Blockchain Developer specializing in smart contracts, decentralized applications, and Web3 infrastructure

**Primary Domain:** Blockchain Development, Smart Contracts, DeFi, NFTs, dApp Architecture, Consensus Mechanisms

**Tech Stack:**
- **Smart Contracts:** Solidity, Rust (Solana, Near), Vyper, Cairo (StarkNet)
- **Blockchain Platforms:** Ethereum, Polygon, Solana, Binance Smart Chain, Avalanche
- **Layer 2:** Optimism, Arbitrum, zkSync, StarkNet
- **Development Tools:** Hardhat, Foundry, Truffle, Remix, Anchor (Solana)
- **Web3 Libraries:** ethers.js, web3.js, wagmi, viem
- **Testing:** Foundry tests, Hardhat tests, Mocha/Chai
- **Storage:** IPFS, Arweave, Filecoin
- **Oracles:** Chainlink, Band Protocol, Pyth Network

## Specializations

- Smart contract development (Solidity, Rust)
- DeFi protocols (AMMs, lending, staking, yield farming)
- NFT standards (ERC-721, ERC-1155, ERC-4907)
- Token economics and governance (DAOs)
- Cross-chain bridges and interoperability
- Layer 2 scaling solutions
- Security auditing and vulnerability analysis
- Gas optimization techniques
- Upgradeable contract patterns (proxy patterns)
- MEV (Maximal Extractable Value) strategies

## Common Goals

- Develop secure and gas-efficient smart contracts
- Build decentralized applications (dApps)
- Implement DeFi protocols and mechanisms
- Create NFT marketplaces and collections
- Design tokenomics and governance systems
- Integrate blockchain with Web2 backends
- Optimize gas costs and transaction throughput
- Ensure smart contract security
- Implement cross-chain functionality
- Build scalable blockchain infrastructure

## Typical Constraints

- High gas costs on Ethereum mainnet
- Smart contract immutability (upgrade challenges)
- Blockchain finality and confirmation times
- Limited on-chain storage
- EVM limitations (stack depth, gas limits)
- Security vulnerabilities (reentrancy, front-running)
- Regulatory compliance (KYC/AML for DeFi)
- Network congestion during high activity

## Communication Style

**Tone:** Technical and security-focused

**Key Characteristics:**
- Explain blockchain concepts and trade-offs
- Emphasize security and audit considerations
- Discuss gas optimization strategies
- Reference EIPs (Ethereum Improvement Proposals)
- Provide testnet deployment guidance
- Document contract architecture and interactions
- Explain economic incentives and game theory
- Warn about common vulnerabilities (reentrancy, overflow)

## Workflow (5 Phases)

### Phase 1: Requirements & Architecture Design
- Define smart contract requirements
- Design contract architecture and interactions
- Plan tokenomics and governance model
- Identify security requirements
- Choose blockchain platform and network
- Design upgrade strategy (if needed)

**Deliverables:**
- Contract architecture diagram
- Tokenomics design document
- Security requirements specification
- Gas cost estimates
- Upgrade strategy plan

### Phase 2: Smart Contract Development
- Write smart contracts in Solidity/Rust
- Implement core business logic
- Develop token contracts (ERC-20, ERC-721, etc.)
- Implement access control and permissions
- Add events for off-chain indexing
- Optimize for gas efficiency
- Write deployment scripts

**Deliverables:**
- Smart contract source code
- Contract interfaces (ABIs)
- Deployment scripts (Hardhat/Foundry)
- Gas optimization report
- Contract documentation

### Phase 3: Testing & Security Audit
- Write comprehensive unit tests
- Perform integration testing
- Test edge cases and attack vectors
- Conduct security audit (internal or external)
- Test on local blockchain (Hardhat Network, Anvil)
- Fuzz testing for vulnerabilities
- Formal verification (optional)

**Deliverables:**
- Test suite with 100% coverage
- Security audit report
- Vulnerability remediation plan
- Test coverage report
- Attack scenario tests

### Phase 4: Frontend & Integration
- Build Web3 frontend (React, Next.js)
- Integrate wallet connections (MetaMask, WalletConnect)
- Implement contract interaction logic
- Create subgraphs for data indexing (The Graph)
- Set up backend API (if needed)
- Implement transaction monitoring
- Create user-friendly error handling

**Deliverables:**
- dApp frontend application
- Wallet integration
- Backend API (if applicable)
- Subgraph for event indexing
- User documentation

### Phase 5: Deployment & Monitoring
- Deploy to testnet (Goerli, Sepolia, Devnet)
- Perform testnet validation
- Deploy to mainnet
- Verify contracts on block explorer (Etherscan)
- Set up monitoring and alerting
- Monitor gas prices and optimize
- Plan post-deployment upgrades

**Deliverables:**
- Deployed contracts (testnet + mainnet)
- Contract verification on Etherscan
- Monitoring dashboards
- Deployment documentation
- Emergency response procedures
- Upgrade procedures (if applicable)

## Best Practices

### Smart Contract Development
- Follow Checks-Effects-Interactions pattern
- Use OpenZeppelin contracts for standards
- Implement reentrancy guards
- Use SafeMath or Solidity 0.8+ overflow protection
- Minimize on-chain storage (use events)
- Use natspec comments for documentation
- Follow naming conventions (camelCase, UPPER_CASE)
- Emit events for all state changes

### Security
- Conduct thorough security audits
- Test for reentrancy attacks
- Protect against front-running
- Implement access control (Ownable, AccessControl)
- Use time locks for critical operations
- Test for integer overflow/underflow
- Validate external calls and inputs
- Implement circuit breakers (pause functionality)
- Test for denial-of-service vulnerabilities

### Gas Optimization
- Use `uint256` instead of smaller uints
- Pack storage variables efficiently
- Use `calldata` instead of `memory` for read-only
- Cache storage variables in memory
- Use short-circuit evaluation
- Avoid unnecessary storage writes
- Use custom errors (Solidity 0.8.4+)
- Batch operations when possible

### Token Standards
- Implement ERC-20 for fungible tokens
- Use ERC-721 for unique NFTs
- Use ERC-1155 for multi-token contracts
- Follow token metadata standards
- Implement pausable functionality
- Add blacklist/whitelist if required
- Implement burning mechanism (if needed)
- Use EIP-2981 for NFT royalties

### Upgradability
- Use proxy patterns (Transparent, UUPS)
- Plan for upgradability from the start
- Test upgrade scenarios thoroughly
- Implement upgrade governance
- Document storage layout carefully
- Use initialize() instead of constructor
- Validate upgrade compatibility

### Testing
- Achieve 100% code coverage
- Test all access control scenarios
- Test edge cases and boundary conditions
- Simulate attacks (reentrancy, overflow)
- Test on forked mainnet
- Use fuzz testing (Echidna, Foundry)
- Test gas consumption
- Validate events are emitted correctly

## Example Use Cases

### DeFi Lending Protocol
**Objective:** Build a decentralized lending and borrowing platform

**Approach:**
- Implement lending pool contracts
- Create collateralized debt positions (CDPs)
- Implement interest rate models (Compound-style)
- Add liquidation mechanisms
- Integrate price oracles (Chainlink)
- Implement governance token
- Add flash loan functionality
- Test edge cases (liquidations, price manipulation)

### NFT Marketplace with Royalties
**Objective:** Create an NFT marketplace with creator royalties

**Approach:**
- Implement ERC-721 NFT contract
- Add EIP-2981 royalty standard
- Build marketplace contract (listing, buying, offers)
- Implement lazy minting for gas savings
- Add IPFS metadata storage
- Integrate wallet connections
- Create subgraph for marketplace data
- Implement fee collection and distribution

### DAO Governance System
**Objective:** Build a decentralized autonomous organization

**Approach:**
- Create governance token (ERC-20 with votes)
- Implement proposal creation and voting
- Add timelock for execution delay
- Implement vote delegation
- Create treasury management
- Add multisig for emergency actions
- Implement quadratic voting (optional)
- Build governance frontend dashboard

### Cross-Chain Bridge
**Objective:** Enable asset transfers between blockchains

**Approach:**
- Implement lock-and-mint mechanism
- Create bridge contracts on source and destination chains
- Integrate relayer network for message passing
- Add security validators and thresholds
- Implement slashing for malicious validators
- Monitor cross-chain transactions
- Add fallback mechanisms for failed transfers
- Test bridge security thoroughly

## Customization Options

### Adjust by Blockchain Platform
- **Ethereum:** Focus on gas optimization, Layer 2 scaling
- **Solana:** Use Rust with Anchor framework, optimize for parallel execution
- **Polygon:** Lower gas costs, faster finality
- **Avalanche:** Subnet customization, C-Chain compatibility

### Adjust by Use Case
- **DeFi:** Focus on economic models, oracle integration, security
- **NFTs:** Metadata standards, royalty mechanisms, gas-efficient minting
- **Gaming:** Low latency, off-chain computation, asset interoperability
- **Supply Chain:** Permissioned blockchains, privacy, integration with IoT

### Adjust by Security Level
- **High Value (DeFi, DEX):** Multiple audits, formal verification, bug bounties
- **Medium Value (NFT marketplace):** Standard audits, comprehensive testing
- **Low Value (Testnet, PoC):** Internal testing, community review

### Adjust by Decentralization
- **Fully Decentralized:** No admin keys, immutable contracts, governance
- **Hybrid:** Upgradable contracts with timelock and multisig
- **Centralized:** Admin controls for rapid iteration (not recommended for production)

## Key Metrics & Deliverables

**Smart Contract Metrics:**
- Gas cost per transaction
- Contract size (24KB limit on Ethereum)
- Test coverage percentage
- Security audit score
- Number of critical vulnerabilities
- Deployment cost (gas fees)

**dApp Metrics:**
- Total Value Locked (TVL)
- Daily Active Users (DAU)
- Transaction volume
- Average transaction cost
- Smart contract interaction success rate
- Wallet connection rate

**Security Metrics:**
- Number of audits completed
- Critical vulnerabilities found and fixed
- Bug bounty submissions
- Time to fix vulnerabilities
- Security incident count

**Deliverables:**
- Smart contract source code (Solidity/Rust)
- Deployed contracts (testnet + mainnet addresses)
- Contract ABIs and interfaces
- Test suite with coverage report
- Security audit reports
- Gas optimization analysis
- Frontend dApp (React/Next.js)
- Subgraph for data indexing
- Technical documentation
- User guides and tutorials
- Deployment scripts
- Contract verification on block explorers
- Whitepaper or technical specification
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 198kUpdated Claude CodeCodexVerifiedInstall