Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
104 commits
Select commit Hold shift + click to select a range
6bc6b37
feat: add solana-depin-builder-skill README
Stan-lee13 Jul 1, 2026
8095659
feat: add SKILL.md entry point
Stan-lee13 Jul 1, 2026
2a9ce5f
feat: add CLAUDE.md behavior config
Stan-lee13 Jul 1, 2026
0aff991
feat: add interactive installer
Stan-lee13 Jul 1, 2026
ec55298
feat: add AGENTS.md roster
Stan-lee13 Jul 1, 2026
a605ca0
feat: add SECURITY.md
Stan-lee13 Jul 1, 2026
7757fdc
feat: add MIT LICENSE
Stan-lee13 Jul 1, 2026
6b45b4f
feat: add skill routing table
Stan-lee13 Jul 1, 2026
e5a4019
feat: add DePIN overview + protocol post-mortems
Stan-lee13 Jul 1, 2026
040d33f
feat: add network architecture patterns A-E
Stan-lee13 Jul 1, 2026
5cbc57e
feat: add node registry + Anchor program
Stan-lee13 Jul 1, 2026
ef46912
feat: add oracle integration (Switchboard + TEE)
Stan-lee13 Jul 1, 2026
2e8fffb
feat: add H3 proof-of-coverage
Stan-lee13 Jul 1, 2026
1b8fe98
feat: add reward system + emission design
Stan-lee13 Jul 1, 2026
5b15384
feat: add ZK compression for 1M+ devices
Stan-lee13 Jul 1, 2026
8de9e88
feat: add tokenomics + death-spiral detector
Stan-lee13 Jul 1, 2026
51b6b87
feat: add hardware supply chain + SE attestation
Stan-lee13 Jul 1, 2026
e84bfda
feat: add RF compliance (FCC/CE 8-jurisdiction)
Stan-lee13 Jul 1, 2026
57fabc4
feat: add wallet security A1-A8 threat model
Stan-lee13 Jul 1, 2026
c34c1b3
feat: add adaptive proof engine (auto-switches by density)
Stan-lee13 Jul 1, 2026
dd84022
feat: add coverage insurance protocol (on-chain SLA)
Stan-lee13 Jul 1, 2026
d086dc6
feat: add node reputation system (Bayesian 0-10K)
Stan-lee13 Jul 1, 2026
3174ab1
feat: add data marketplace
Stan-lee13 Jul 1, 2026
0c9245b
feat: add network growth + bootstrap strategy
Stan-lee13 Jul 1, 2026
363a01c
feat: add hardware integration
Stan-lee13 Jul 1, 2026
2acf6c5
feat: add DePIN TGE readiness gate
Stan-lee13 Jul 1, 2026
8d49f43
feat: add incident response cross-skill integration
Stan-lee13 Jul 1, 2026
78b8dd2
feat: add storage DePIN patterns
Stan-lee13 Jul 1, 2026
02e24d8
feat: add depin-architect agent
Stan-lee13 Jul 1, 2026
e9bcb69
feat: add reward-engineer agent
Stan-lee13 Jul 1, 2026
9372166
feat: add hardware-engineer agent
Stan-lee13 Jul 1, 2026
f457f90
feat: add operator-ux-engineer agent
Stan-lee13 Jul 1, 2026
782d4b2
feat: add tech-docs-writer agent
Stan-lee13 Jul 1, 2026
0773407
feat: add /depin-audit command
Stan-lee13 Jul 1, 2026
3eb54e6
feat: add /node-economics command
Stan-lee13 Jul 1, 2026
c6fd21c
feat: add /depin-deploy command
Stan-lee13 Jul 1, 2026
af1cde0
feat: add /depin-design command
Stan-lee13 Jul 1, 2026
36bccc7
feat: add /depin-diagram command
Stan-lee13 Jul 1, 2026
f1240cd
feat: add /depin-hardware command
Stan-lee13 Jul 1, 2026
7e0d7ec
feat: add depin-safety rules
Stan-lee13 Jul 1, 2026
0a46028
feat: add anchor rules
Stan-lee13 Jul 1, 2026
c8270cb
feat: add rust rules
Stan-lee13 Jul 1, 2026
a79d541
feat: add typescript rules
Stan-lee13 Jul 1, 2026
7bf058c
feat: add rogue-node-detected runbook
Stan-lee13 Jul 1, 2026
78b710d
feat: add oracle-failure runbook
Stan-lee13 Jul 1, 2026
81e02a8
feat: add oracle-key-compromise runbook
Stan-lee13 Jul 1, 2026
83016e1
feat: add coverage-drift runbook
Stan-lee13 Jul 1, 2026
32cf880
feat: add operator-onboarding runbook
Stan-lee13 Jul 1, 2026
df90e86
feat: add governance-attack runbook
Stan-lee13 Jul 1, 2026
bf6dc4f
feat: add token-price-crash runbook
Stan-lee13 Jul 1, 2026
24d98bf
feat: add exchange-delisting runbook
Stan-lee13 Jul 1, 2026
3686fcd
feat: add regulatory-enforcement runbook
Stan-lee13 Jul 1, 2026
c9a4627
feat: add ecosystem signals cross-skill routing
Stan-lee13 Jul 1, 2026
dfb3816
feat: add Anchor example Cargo.toml
Stan-lee13 Jul 1, 2026
ffe697d
feat: add Anchor example README
Stan-lee13 Jul 1, 2026
ae5752f
feat: add depin-registry Cargo.toml
Stan-lee13 Jul 1, 2026
a951472
feat: add node registry Anchor program
Stan-lee13 Jul 1, 2026
b5acce5
feat: add 7 integration tests for node registry
Stan-lee13 Jul 1, 2026
8e885ef
feat: add TypeScript example README
Stan-lee13 Jul 1, 2026
268e7c7
feat: add TypeScript package.json
Stan-lee13 Jul 1, 2026
317afb0
feat: add ROI calculator + emission scheduler
Stan-lee13 Jul 1, 2026
7a5453c
feat: add 10 ROI calculator unit tests
Stan-lee13 Jul 1, 2026
6051cac
feat: add tsconfig.json
Stan-lee13 Jul 1, 2026
3c85a10
feat: add CONTRIBUTING.md
Stan-lee13 Jul 1, 2026
0feec1d
feat: add QUICK_REFERENCE.md
Stan-lee13 Jul 1, 2026
18dbd23
feat: add shared wallet security framework
Stan-lee13 Jul 1, 2026
b6d1f51
feat: add Makefile (validate/test/roi targets)
Stan-lee13 Jul 1, 2026
e882072
feat: add GitHub Actions docs
Stan-lee13 Jul 1, 2026
74573c3
feat: add CI workflow
Stan-lee13 Jul 1, 2026
54bce4d
feat: add markdownlint config
Stan-lee13 Jul 1, 2026
e81926c
feat: add link checker config
Stan-lee13 Jul 1, 2026
ae54196
feat: add VSCode extensions
Stan-lee13 Jul 1, 2026
9afe779
feat: add VSCode settings
Stan-lee13 Jul 1, 2026
fb2447c
feat: add CI documentation
Stan-lee13 Jul 1, 2026
b3fe448
feat: add TypeScript performance benchmarks
Stan-lee13 Jul 1, 2026
d6dec7d
feat: add data-pricing-oracle.md — on-chain bonding curve pricing for…
Stan-lee13 Jul 1, 2026
3bf0a11
feat: update SKILL.md routing — add Innovation section with all 4 nov…
Stan-lee13 Jul 1, 2026
ae88e6d
fix(readme): full production audit — correct all file counts, expand …
Stan-lee13 Jul 1, 2026
5fab0ee
fix(agents): complete agent routing, all 22 skills, all 6 commands, S…
Stan-lee13 Jul 1, 2026
1cf84f2
fix(claude): expand capabilities to all 22 skills, F+G patterns, Inte…
Stan-lee13 Jul 1, 2026
9338428
fix(skill/SKILL.md): add all 10 missing skill files to routing table
Stan-lee13 Jul 1, 2026
615ceba
fix(overview): add Pattern F+G (Storage+Energy); correct heading to S…
Stan-lee13 Jul 1, 2026
94534d8
fix(zk-compression): replace sig-placeholder with real VersionedTrans…
Stan-lee13 Jul 1, 2026
e7275a0
fix(depin-token-launch): fix 2 broken internal skill references
Stan-lee13 Jul 1, 2026
81d5948
fix(incident-response-integration): fix 3 broken cross-skill references
Stan-lee13 Jul 1, 2026
c9b017a
fix(runbooks/oracle-key-compromise): add config banner, annotate plac…
Stan-lee13 Jul 1, 2026
69843b7
fix(runbooks/regulatory-enforcement): fix email placeholder, add conf…
Stan-lee13 Jul 1, 2026
65c02a2
fix(contributing): add tech-docs-writer to agents/ description
Stan-lee13 Jul 1, 2026
9565906
fix(wallet-framework): fix 2 broken cross-repo backtick references
Stan-lee13 Jul 1, 2026
5800feb
fix(depin-diagram): Pattern D→C (Compute) and Pattern E→F (Storage) l…
Stan-lee13 Jul 1, 2026
e48fba4
fix(readme): correct Skill_files badge 22→21 skill docs; fix footer a…
Stan-lee13 Jul 1, 2026
12d75a5
fix(network-architecture): Pattern F=Storage (not Lidar); Lidar moved…
Stan-lee13 Jul 1, 2026
944ee23
fix(depin-diagram): Lidar renamed D sub-variant; Pattern F=Storage on…
Stan-lee13 Jul 1, 2026
1b44d9c
fix(wallet-framework): qualify cross-repo backtick refs with repo nam…
Stan-lee13 Jul 1, 2026
4acf319
fix(anchor/lib.rs): add Squads multisig production guidance to author…
Stan-lee13 Jul 1, 2026
a088859
feat(zk-compression): 10K-10M scale reframe — 5-tier cost table (10K/…
Stan-lee13 Jul 1, 2026
81bdf65
feat(quick-reference): add ZK Compression quickstart (tree configs by…
Stan-lee13 Jul 1, 2026
853ad18
feat(runbooks/oracle-failure): full production runbook — 5 steps with…
Stan-lee13 Jul 1, 2026
08c1808
feat(runbooks/rogue-node): full production runbook — TypeScript sybil…
Stan-lee13 Jul 1, 2026
6a70af0
feat(runbooks/coverage-drift): full production runbook — SQL queries …
Stan-lee13 Jul 1, 2026
1a5ae77
feat(ecosystem-signals): add UX skill routing for DEPIN_OPERATOR_ALER…
Stan-lee13 Jul 1, 2026
675c6f0
feat(wallet-framework): add Argon2id key derivation standard with cod…
Stan-lee13 Jul 1, 2026
0babcec
feat(ci): add lychee markdown link-check job with cache restore — val…
Stan-lee13 Jul 1, 2026
803480c
feat(zk): Security Considerations, Hybrid Architecture, Decision Matr…
Stan-lee13 Jul 1, 2026
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
102 changes: 102 additions & 0 deletions solana-depin-builder-skill/.github/ACTIONS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
name: CI — Lint, Validate & Test

on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
# ── Markdown lint ─────────────────────────────────────────────────────────────
markdown-lint:
name: Markdown Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm install -g markdownlint-cli@0.33.0
- run: markdownlint "**/*.md" --ignore node_modules --config .markdownlint.json

# ── Required file structure ────────────────────────────────────────────────
structure-check:
name: Required File Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify required files
run: |
REQUIRED=(
"AGENTS.md" "CLAUDE.md" "CONTRIBUTING.md" "SECURITY.md"
"README.md" "SKILL.md" "ecosystem-signals.md" "install.sh"
"rules/depin-safety.md"
"agents/depin-architect.md" "agents/reward-engineer.md"
"commands/depin-audit.md" "commands/node-economics.md"
"examples/ts/README.md" "examples/ts/src/roi-calculator.ts"
"examples/ts/tests/roi-calculator.test.ts"
"examples/anchor/README.md"
"examples/anchor/programs/depin-registry/src/lib.rs"
)
MISSING=0
for f in "${REQUIRED[@]}"; do
if [ -f "$f" ]; then echo "OK: $f"; else echo "MISSING: $f"; MISSING=$((MISSING+1)); fi
done
[ $MISSING -eq 0 ] || exit 1

# ── TypeScript examples — install + test ──────────────────────────────────
ts-tests:
name: TypeScript Example Tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: examples/ts
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
cache-dependency-path: examples/ts/package-lock.json
- name: Install dependencies
run: npm install
- name: Run ROI calculator (smoke test)
run: node --loader ts-node/esm src/roi-calculator.ts || npx ts-node src/roi-calculator.ts
- name: Run unit tests
run: npm test -- --forceExit

# ── depin-safety.md policy assertions ─────────────────────────────────────
safety-policy-check:
name: Safety Policy Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Verify key safety terms referenced in skill files
run: |
TERMS=("anti-Sybil" "multisig" "emergency" "slash" "stake")
FAILURES=0
for term in "${TERMS[@]}"; do
if grep -rq "$term" skill/ agents/ commands/; then
echo "OK: '$term' referenced in skill/agents/commands"
else
echo "MISSING: '$term' — required by rules/depin-safety.md"
FAILURES=$((FAILURES+1))
fi
done
[ $FAILURES -eq 0 ] || exit 1

# ── Link check (internal) ─────────────────────────────────────────────────
link-check:
name: Internal Link Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- run: npm install -g markdown-link-check@3.11.0
- name: Check internal links in key docs
run: |
for f in README.md SKILL.md AGENTS.md CLAUDE.md; do
[ -f "$f" ] && markdown-link-check "$f" --config .mlc-config.json || true
done
185 changes: 185 additions & 0 deletions solana-depin-builder-skill/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,185 @@
name: CI/CD Pipeline

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
# TypeScript Examples
test-typescript:
name: Test TypeScript Examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: examples/ts/package-lock.json

- name: Install dependencies
working-directory: examples/ts
run: npm ci

- name: Run tests
working-directory: examples/ts
run: npm test

- name: Run ROI calculator
working-directory: examples/ts
run: npm run roi

- name: Security audit
working-directory: examples/ts
run: npm audit --audit-level=moderate

- name: Run Snyk security scan
uses: snyk/actions/node@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high
command: test

# Anchor Program
test-anchor:
name: Test Anchor Program
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal

- name: Install Solana CLI
run: sh -c "$(curl -sSfL https://release.solana.com/v1.18.4/install)"

- name: Install Anchor
run: cargo install --git https://github.com/coral-xyz/anchor avm --locked --force
- run: avm install latest
- run: avm use latest

- name: Build Anchor program
working-directory: examples/anchor
run: anchor build

- name: Run Anchor tests
working-directory: examples/anchor
run: anchor test --skip-local-validator

- name: Security audit (Cargo)
working-directory: examples/anchor
run: cargo audit

- name: Run Snyk security scan
uses: snyk/actions/rust@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high
command: test

# Markdown Linting
lint-markdown:
name: Lint Markdown
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install markdownlint
run: npm install -g markdownlint-cli

- name: Run markdownlint
run: markdownlint '**/*.md' --config .markdownlint.json

# Structure Validation
validate-structure:
name: Validate Structure
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Check required files exist
run: |
test -f SKILL.md || exit 1
test -f CLAUDE.md || exit 1
test -f AGENTS.md || exit 1
test -f README.md || exit 1
test -f rules/depin-safety.md || exit 1
test -f agents/depin-architect.md || exit 1
test -f agents/reward-engineer.md || exit 1
test -f skill/network-architecture.md || exit 1
test -f skill/oracle-integration.md || exit 1
test -f skill/coverage-verification.md || exit 1
test -f skill/reward-system.md || exit 1
test -f skill/node-registry.md || exit 1
test -f skill/data-marketplace.md || exit 1
test -f skill/network-growth.md || exit 1
test -f skill/hardware-integration.md || exit 1
test -f skill/depin-token-launch.md || exit 1
test -f skill/incident-response-integration.md || exit 1
test -f commands/depin-audit.md || exit 1
test -f commands/node-economics.md || exit 1
echo "✅ All required files exist"

# Test Coverage
coverage:
name: Test Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
working-directory: examples/ts
run: npm ci

- name: Generate coverage report
working-directory: examples/ts
run: npm run test:coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
file: examples/ts/coverage/lcov.info
flags: typescript

link-check:
name: Check Markdown Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Restore lychee cache
uses: actions/cache@v4
with:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Run lychee link checker
uses: lycheeverse/lychee-action@v1
with:
args: >
--config .lychee.toml
--no-progress
'**/*.md'
fail: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7 changes: 7 additions & 0 deletions solana-depin-builder-skill/.markdownlint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"default": true,
"MD013": false,
"MD033": false,
"MD041": false,
"MD024": false
}
7 changes: 7 additions & 0 deletions solana-depin-builder-skill/.mlc-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{ "pattern": "^https?://" }
],
"retryOn429": true,
"retryCount": 3
}
14 changes: 14 additions & 0 deletions solana-depin-builder-skill/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode",
"rust-lang.rust-analyzer",
"tamasfe.even-better-toml",
"wayou.vscode-todo-highlight",
"streetsidesoftware.code-spell-checker",
"bierner.markdown-mermaid",
"yzhang.markdown-all-in-one",
"redhat.vscode-yaml",
"ms-vscode.makefile-tools"
]
}
20 changes: 20 additions & 0 deletions solana-depin-builder-skill/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": [
"javascript",
"typescript",
"typescriptreact"
],
"rust-analyzer.checkOnSave.command": "clippy",
"files.exclude": {
"**/.git": true,
"**/.svn": true,
"**/.hg": true,
"**/CVS": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/node_modules": true,
"**/target": true
}
}
Loading