मुख्य सामग्री पर जाएँ
Skillpedia
API और सर्वर (backend)7.8k · #13028

web3-fullstack-packaged-build

यह क्या करती है

यह स्किल AI एजेंट को एक तय क्रम में परतों में फुल-स्टैक Web3 ऐप बनाना सिखाती है और अंत में उसे पैकेज करती है। यह उन डेवलपर्स के लिए है जिन्हें एक पूरा, शिप करने लायक प्रोजेक्ट चाहिए।

कब इस्तेमाल करें

  • ✓जब आप कॉन्ट्रैक्ट, फ्रंटएंड और स्क्रिप्ट वाला फुल-स्टैक Web3 प्रोजेक्ट शुरू कर रहे हों।
  • ✓जब आप चाहते हैं कि प्रोजेक्ट परतों में बने और हर परत अलग से जाँची जा सके।
  • ✓जब अंत में तैयार प्रोजेक्ट को डिलीवरेबल के रूप में पैकेज करना हो।

Skill का लिंक

https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/web3-fullstack-systematic-build-enhanced/SKILL.md

इसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।

कैसे इस्तेमाल करें

सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।

पेस्ट करने के लिए तैयार मैसेज

इस skill से मेरी मदद करो: https://github.com/HKUDS/AgentPilot/blob/main/openspace/benchmarks/gdpval/skills/web3-fullstack-systematic-build-enhanced/SKILL.md इस लिंक की SKILL.md फ़ाइल पढ़ो और मेरे काम में उसके निर्देशों का पालन करो।
क्या आप चाहते हैं कि आपका AI ऐसी skills खुद ढूँढे?मुफ़्त Skillpedia MCP इंस्टॉल करें: बस एक लाइन, और हर काम से पहले यह 15,000+ skills में खोजता है।1 मिनट में इंस्टॉल करें →

AI से क्या माँगें: उदाहरण

“कॉन्ट्रैक्ट, फ्रंटएंड और डिप्लॉय स्क्रिप्ट वाला फुल-स्टैक Web3 प्रोजेक्ट बनाइए। उसे परतों में बनाइए और अंत में पैकेज कीजिए।”

हर हफ़्ते 5 नई skills, 1 मिनट में पढ़ें।

यह कैसे काम करती है

एजेंट पहले पूरा फ़ोल्डर ढांचा बनाता है, फिर कोई लॉजिक लिखने से पहले इंटरफ़ेस कॉन्ट्रैक्ट लिखता है। वह परतों को क्रम से बनाता है और अंत में पैकेजिंग चरण से एक पूरा डिलीवरेबल तैयार करता है।

तकनीकी सामग्री (मूल SKILL.md)

लेखक का मूल टेक्स्ट, अंग्रेज़ी में, सीधे GitHub से।

Web3 Full-Stack Packaged Build

This skill provides a structured, layer-by-layer approach to building complex full-stack Web3 applications with integrated deliverable packaging. Follow this sequence to maintain clarity, reduce coupling, enable incremental testing, and ensure a complete, shippable artifact is produced even when tool failures occur.

Phase 1: Project Structure

First, establish the complete directory structure before writing any code:

project-name/
├── contracts/
│   ├── interfaces/
│   ├── core/
│   ├── libraries/
│   └── deployment/
├── frontend/
│   ├── src/
│   │   ├── components/
│   │   ├── hooks/
│   │   ├── config/
│   │   └── utils/
│   └── public/
├── scripts/
│   ├── deploy/
│   └── test/
├── zk-circuits/
└── docs/

Action: Create all directories upfront using:

mkdir -p contracts/{interfaces,core,libraries,deployment}
mkdir -p frontend/src/{components,hooks,config,utils}
mkdir -p frontend/public
mkdir -p scripts/{deploy,test}
mkdir -p zk-circuits docs

Phase 2: Interface Contracts First

Define all interface contracts before implementing logic. This establishes clear API boundaries.

Example interface structure:

// contracts/interfaces/IToken.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IToken {
    function transfer(address to, uint256 amount) external returns (bool);
    function balanceOf(address account) external view returns (uint256);
    function approve(address spender, uint256 amount) external returns (bool);
}

Actions:

  1. List all external protocols you'll integrate (e.g., Aave, Connext, Uniswap)
  2. Create interface files for each protocol's required functions
  3. Create interfaces for your own contracts' public APIs
  4. Validate interface completeness before proceeding

Phase 3: Core Contract Implementation

Implement contracts in dependency order, starting with libraries, then core logic.

Order of implementation:

  1. Libraries - Utility functions with no state dependencies
  2. Base contracts - Abstract contracts with shared logic
  3. Core contracts - Main business logic implementing interfaces
  4. Integration contracts - Contracts that bridge multiple protocols

Example:

// contracts/core/PrivatePool.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

import "../interfaces/IToken.sol";
import "../libraries/SafeMath.sol";

contract PrivatePool {
    using SafeMath for uint256;
    
    IToken public token;
    mapping(address => uint256) private balances;
    
    constructor(address _token) {
        token = IToken(_token);
    }
    
    function deposit(uint256 amount) external {
        token.transferFrom(msg.sender, address(this), amount);
        balances[msg.sender] = balances[msg.sender].add(amount);
    }
}

Actions:

  1. Implement one contract at a time
  2. Compile and test each contract before moving to the next
  3. Keep contracts focused on single responsibilities
  4. Document all state variables and functions

Phase 4: Frontend Configuration

Set up frontend infrastructure before building components.

Create these config files first:

  1. Network configuration (frontend/src/config/networks.js):
export const networks = {
  mainnet: {
    chainId: 1,
    rpcUrl: process.env.REACT_APP_MAINNET_RPC,
    explorer: 'https://etherscan.io'
  },
  testnet: {
    chainId: 5,
    rpcUrl: process.env.REACT_APP_TESTNET_RPC,
    explorer: 'https://goerli.etherscan.io'
  }
};
  1. Contract addresses (frontend/src/config/contracts.js):
export const contractAddresses = {
  PrivatePool: process.env.REACT_APP_PRIVATE_POOL_ADDRESS,
  Token: process.env.REACT_APP_TOKEN_ADDRESS
};
  1. ABI imports (frontend/src/config/abis/):
// Import compiled contract ABIs here
import PrivatePoolABI from './PrivatePool.json';
export { PrivatePoolABI };

Actions:

  1. Create environment variable templates (.env.example)
  2. Set up Web3 provider configuration (ethers.js, web3.js, or wagmi)
  3. Configure wallet connection logic
  4. Create utility functions for common operations

Phase 5: Component Development

Build frontend components in this order:

  1. Utility components - Buttons, inputs, modals (no Web3 logic)
  2. Web3 wrapper components - Wallet connection, network switcher
  3. Contract interaction components - Forms that call contract functions
  4. Data display components - C
अक्सर पूछे जाने वाले सवाल

लॉजिक से पहले इंटरफ़ेस क्यों तय करें?

स्किल के अनुसार इंटरफ़ेस साफ़ सीमाएं तय करते हैं, जिससे परतें आपस में ठीक बैठती हैं और अलग से जाँची जा सकती हैं।

पहले कौन से फ़ोल्डर बनते हैं?

स्किल कोड से पहले contracts, frontend, scripts, zk-circuits और docs फ़ोल्डर बनाती है।

क्या पैकेजिंग इस प्रक्रिया का हिस्सा है?

हां, स्किल में पैकेजिंग एक अनिवार्य अंतिम चरण है, ताकि शिप करने लायक नतीजा मिले।

जानकारी

लेखक का मूल विवरण

Systematic full-stack Web3 build with mandatory packaging and delivery phase

repo: HKUDS/AgentPilot

लोकप्रियता

GitHub स्टार
7.8k
रैंकिंग में स्थान
#13028
लाइसेंस
MIT
अपडेट की गई
1/11/2026

क्या यह skill काम की है?

0

लॉग इन करें वोट करने के लिए।

कमेंट

  • …

इस repository की और skills

मिलती-जुलती skills