Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/prompt_templates/dao_governance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DAO Governance Prompt Template

## Overview
A high‑quality prompt for generating a **DAO governance** interface that enables proposal creation, voting, and treasury management.

## Prompt Structure
```
You are a senior blockchain product architect. Create a comprehensive DAO governance dashboard for **[DAO Name]** on **[Chain]**.

### Context
- Audience: token holders, community members, and governance participants.
- Core modules: Proposal creation, voting (single‑choice, quadratic), treasury overview, delegation, and member directory.
- Constraints: Gas‑efficient voting, snapshot integration, off‑chain vote tallying optional, dark‑mode ready.

### Requirements
1. **Layout**: Describe navigation bar, proposal list, detail view, and treasury panel.
2. **Components**: List React components with props for proposal metadata, vote counts, and token balances.
3. **Data Queries**: Suggest Subgraph queries for proposals, votes, token holdings, or use Snapshot API.
4. **Visualisation**: Recommend bar charts for vote distribution, line chart for treasury growth, using `recharts` or `victory`.
5. **Security**: Include checks for vote replay protection, signature verification, and role‑based access.
6. **Example Code**: Provide a minimal component rendering a proposal card.

### Output Format
- Markdown with `tsx` code fences.
- Table of component props.
- End with a **README** style summary.
```
27 changes: 27 additions & 0 deletions docs/prompt_templates/defi_dashboard.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DeFi Dashboard Prompt Template

## Overview
A high‑quality prompt for generating a **DeFi dashboard** that visualises lending, borrowing, liquidity pools, and yield farming metrics.

## Prompt Structure
```
You are a senior blockchain UI/UX architect. Create a comprehensive DeFi dashboard for **[Platform Name]** on **[Chain]**.

### Context
- Target audience: crypto‑savvy investors and DeFi analysts.
- Core modules: Lending, Borrowing, Liquidity Pools, Yield Farming, TVL, APR/APY tables, risk metrics.
- Design constraints: responsive, dark‑mode ready, gas‑optimised data fetching.

### Requirements
1. **Layout**: Provide a wireframe description (header, sidebar, main panels).
2. **Components**: List React (or Next.js) components with props, state shape, and data sources.
3. **Data Queries**: Suggest GraphQL/Subgraph queries, or direct RPC calls.
4. **Visualisation**: Recommend chart types (candlestick, area, bar) and libraries (Chart.js, Recharts).
5. **Security**: Highlight re‑entrancy checks, oracle trust, and user‑wallet integration.
6. **Example Code**: Include a minimal functional component snippet.

### Output Format
- Use Markdown with code fences labelled `tsx` for TypeScript/React examples.
- Provide a table of component props.
- End with a **README** style summary.
```
27 changes: 27 additions & 0 deletions docs/prompt_templates/nft_marketplace.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# NFT Marketplace Prompt Template

## Overview
A high‑quality prompt for generating an **NFT marketplace** UI that handles minting, buying, selling, and auctioning NFTs.

## Prompt Structure
```
You are a senior blockchain product designer. Create a comprehensive NFT marketplace for **[Platform Name]** on **[Chain]**.

### Context
- Audience: NFT collectors, creators, and artists.
- Core features: Minting, Listing, Fixed‑price sales, English/Auction sales, royalty management.
- Constraints: Gas‑efficient contract interactions, wallet‑connect integration, responsive design.

### Requirements
1. **Layout**: Describe header, collection grid, item detail modal.
2. **Components**: List React components with props for NFT metadata, price, owner.
3. **Data Queries**: Propose RPC calls or TheGraph queries to fetch token metadata and ownership.
4. **Visualisation**: Recommend gallery grid, carousel for NFT previews, using libraries like `react‑photo‑gallery`.
5. **Security**: Include checks for signature verification, replay protection, and royalty enforcement.
6. **Example Code**: Provide a minimal component displaying an NFT card.

### Output Format
- Markdown with `tsx` code fences.
- Table of component props.
- End with a **README** style summary.
```
27 changes: 27 additions & 0 deletions docs/prompt_templates/payment_application.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Payment Application Prompt Template

## Overview
A high‑quality prompt for generating a **blockchain payment application** UI that supports token transfers, invoicing, and fiat‑on‑ramp integrations.

## Prompt Structure
```
You are a senior blockchain product engineer. Create a comprehensive payment application for **[Company/Brand]** on **[Chain]**.

### Context
- Audience: merchants, end‑users, and finance teams.
- Core features: Send/receive tokens, generate QR code invoices, recurring payments, fiat‑on‑ramp via third‑party APIs, transaction history.
- Constraints: Low‑gas fee transactions, compliance (KYC/AML), responsive design, multi‑currency support.

### Requirements
1. **Layout**: Describe dashboard, send payment form, invoice list, transaction history table.
2. **Components**: List React components with props for amount, token selector, QR code, recipient address.
3. **Data Queries**: Propose RPC calls for balance checks, transaction submission, and webhook handling for payment confirmations.
4. **Visualisation**: Recommend line chart for daily volume, pie chart for token distribution, using `recharts` or `chart.js`.
5. **Security**: Include address validation, nonce handling, signature verification, and optional 2FA.
6. **Example Code**: Provide a minimal component that creates a payment QR code.

### Output Format
- Markdown with `tsx` code fences.
- Table of component props.
- End with a **README** style summary.
```
27 changes: 27 additions & 0 deletions docs/prompt_templates/stellar_crowdfunding.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Stellar Crowdfunding Prompt Template

## Overview
A high‑quality prompt for generating a **Stellar/Soroban crowdfunding** platform that enables campaign creation, contribution tracking, and fund distribution.

## Prompt Structure
```
You are a senior blockchain product engineer. Create a comprehensive crowdfunding platform for **[Campaign/Brand]** on **Stellar**.

### Context
- Audience: project creators, backers, regulators.
- Core features: Campaign setup, contribution handling, milestone releases, token rewards.
- Constraints: Low‑fee micro‑transactions, KYC/AML compliance, escrow handling.

### Requirements
1. **Layout**: Describe campaign dashboard, contribution form, progress tracker, and admin panel.
2. **Components**: List React components with props for campaign details, contribution amount, reward tiers.
3. **Data Queries**: Propose Horizon API calls for campaign state, contributions, and token distribution.
4. **Visualisation**: Recommend progress bar, pie chart for funding sources, using `recharts`.
5. **Security**: Include escrow smart‑contract logic, multi‑sig release, refund mechanisms.
6. **Example Code**: Provide a minimal component that creates a contribution transaction via Stellar SDK.

### Output Format
- Markdown with `tsx` code fences.
- Table of component props.
- End with a **README** style summary.
```
27 changes: 27 additions & 0 deletions docs/prompt_templates/stellar_payment.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Stellar Payment Application Prompt Template

## Overview
A high‑quality prompt for generating a **Stellar/Soroban payment application** that supports token transfers, invoicing, and fiat‑on‑ramp integrations.

## Prompt Structure
```
You are a senior blockchain product engineer. Create a comprehensive payment application for **[Company/Brand]** on **Stellar**.

### Context
- Audience: merchants, consumers, finance teams.
- Core features: Send/receive tokens, generate QR‑code invoices, recurring payments, fiat‑on‑ramp via third‑party APIs, transaction history.
- Constraints: Low‑fee transactions, KYC/AML compliance, responsive UI, multi‑currency support.

### Requirements
1. **Layout**: Describe dashboard, payment form, invoice list, transaction history table.
2. **Components**: List React components with props for amount, token selector, QR code, recipient address.
3. **Data Queries**: Propose Horizon API calls for balance checks, transaction submission, and webhook handling for payment confirmations.
4. **Visualisation**: Recommend line chart for daily volume, pie chart for token distribution, using `recharts` or `chart.js`.
5. **Security**: Include address validation, nonce handling, signature verification, optional 2FA.
6. **Example Code**: Provide a minimal component that creates a payment QR code.

### Output Format
- Markdown with `tsx` code fences.
- Table of component props.
- End with a **README** style summary.
```
27 changes: 27 additions & 0 deletions docs/prompt_templates/stellar_tokenized_asset.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Stellar Tokenized Asset Prompt Template

## Overview
A high‑quality prompt for generating a **Stellar/Soroban tokenized asset** application that enables asset issuance, distribution, and management.

## Prompt Structure
```
You are a senior blockchain product engineer. Create a comprehensive tokenized asset platform for **[Company/Brand]** on **Stellar**.

### Context
- Audience: issuers, investors, regulators.
- Core features: Asset issuance, KYC flow, distribution mechanisms, secondary market, compliance checks.
- Constraints: Low‑fee issuance, regulatory compliance, multi‑signature control, asset revocation.

### Requirements
1. **Layout**: Describe admin dashboard, asset creation wizard, distribution list, holder directory.
2. **Components**: List React components with props for asset metadata, signer list, distribution parameters.
3. **Data Queries**: Propose Horizon API calls for asset issuance, trustline management, balance queries.
4. **Visualisation**: Recommend bar chart for issuance volume, donut chart for holder distribution.
5. **Security**: Include multi‑sig transaction creation, KYC verification hooks, revocation authority.
6. **Example Code**: Provide a minimal component that issues a new asset using Stellar SDK.

### Output Format
- Markdown with `tsx` code fences.
- Table of component props.
- End with a **README** style summary.
```
Loading