opencode-skills-collection 4.1.2 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of opencode-skills-collection might be problematic. Click here for more details.
- package/bundled-skills/.antigravity-install-manifest.json +31 -1
- package/bundled-skills/ai-agent-evaluation-benchmarking/SKILL.md +124 -0
- package/bundled-skills/ai-agent-tool-routing/SKILL.md +136 -0
- package/bundled-skills/ai-code-generation-guardrails/SKILL.md +142 -0
- package/bundled-skills/ai-prompt-regression-testing/SKILL.md +130 -0
- package/bundled-skills/antigravity-maintainer-batch-release/SKILL.md +26 -8
- package/bundled-skills/cline-pilot/README.md +138 -0
- package/bundled-skills/cline-pilot/SKILL.md +301 -0
- package/bundled-skills/cline-pilot/assets/global-memory-bank-prompt.en.md +66 -0
- package/bundled-skills/cline-pilot/assets/global-memory-bank-prompt.md +56 -0
- package/bundled-skills/cline-pilot/references/cold-start.md +58 -0
- package/bundled-skills/cline-pilot/references/decision-log.example.md +9 -0
- package/bundled-skills/cline-pilot/references/local-config.example.md +26 -0
- package/bundled-skills/cline-pilot/references/project-profiles.example.md +10 -0
- package/bundled-skills/cline-pilot/scripts/session_report.py +151 -0
- package/bundled-skills/cross-chain-relayer-audit/SKILL.md +136 -0
- package/bundled-skills/deep-research-framework/SKILL.md +81 -0
- package/bundled-skills/defi-yield-strategy-allocator/SKILL.md +124 -0
- package/bundled-skills/dropthehassle-publish/SKILL.md +151 -0
- package/bundled-skills/five-axis-code-review/SKILL.md +78 -0
- package/bundled-skills/git-commit-message/SKILL.md +76 -0
- package/bundled-skills/idea-to-blueprint/LICENSE +21 -0
- package/bundled-skills/idea-to-blueprint/SKILL.md +260 -0
- package/bundled-skills/idea-to-blueprint/assets/AGENTS.md.template +38 -0
- package/bundled-skills/idea-to-blueprint/assets/CLAUDE.md.template +38 -0
- package/bundled-skills/idea-to-blueprint/assets/DECISIONS.md.template +14 -0
- package/bundled-skills/idea-to-blueprint/assets/PROGRESS.md.template +47 -0
- package/bundled-skills/idea-to-blueprint/assets/session-prompt.md +23 -0
- package/bundled-skills/idea-to-blueprint/references/architecture-decisions.md +202 -0
- package/bundled-skills/idea-to-blueprint/references/blueprint-template.md +259 -0
- package/bundled-skills/idea-to-blueprint/references/code-quality-and-review.md +216 -0
- package/bundled-skills/idea-to-blueprint/references/design-minimal.md +96 -0
- package/bundled-skills/idea-to-blueprint/references/edge-case-catalog.md +239 -0
- package/bundled-skills/idea-to-blueprint/references/intake-questions.md +105 -0
- package/bundled-skills/idea-to-blueprint/references/research-protocol.md +196 -0
- package/bundled-skills/idea-to-blueprint/references/session-protocol.md +133 -0
- package/bundled-skills/idea-to-blueprint/references/stories-ac-tests.md +194 -0
- package/bundled-skills/idea-to-blueprint/references/ux-writing-guide.md +128 -0
- package/bundled-skills/idea-to-blueprint/scripts/lint_blueprint.py +460 -0
- package/bundled-skills/liuguang-banlan-ui/SKILL.md +22 -18
- package/bundled-skills/liuguang-banlan-ui/assets/starter/launcher.css +2 -2
- package/bundled-skills/liuguang-banlan-ui/assets/starter/obsidian/index.html +5 -4
- package/bundled-skills/liuguang-banlan-ui/assets/starter/obsidian/theme-config.js +3 -10
- package/bundled-skills/liuguang-banlan-ui/assets/starter/obsidian/theme.css +48 -62
- package/bundled-skills/liuguang-banlan-ui/assets/starter/opal/index.html +5 -4
- package/bundled-skills/liuguang-banlan-ui/assets/starter/opal/theme-config.js +27 -35
- package/bundled-skills/liuguang-banlan-ui/assets/starter/opal/theme.css +48 -62
- package/bundled-skills/liuguang-banlan-ui/assets/starter/shared/spectral-field.js +135 -148
- package/bundled-skills/liuguang-banlan-ui/references/style-contract.md +26 -7
- package/bundled-skills/liuguang-banlan-ui/references/verification.md +19 -7
- package/bundled-skills/liuguang-banlan-ui/scripts/measure_preview.py +78 -47
- package/bundled-skills/liuguang-banlan-ui/scripts/serve_preview.py +35 -0
- package/bundled-skills/liuguang-banlan-ui/scripts/validate_manifest.py +34 -3
- package/bundled-skills/liuguang-banlan-ui/tests/test_measure_preview.py +119 -0
- package/bundled-skills/liuguang-banlan-ui/tests/test_serve_preview.py +38 -0
- package/bundled-skills/liuguang-banlan-ui/tests/test_validate_manifest.py +73 -0
- package/bundled-skills/loki-mode/examples/todo-app-generated/frontend/package-lock.json +12 -12
- package/bundled-skills/loki-mode/examples/todo-app-generated/frontend/package.json +1 -1
- package/bundled-skills/meeting-notes/SKILL.md +80 -0
- package/bundled-skills/repo-foundation/SKILL.md +166 -0
- package/bundled-skills/repo-foundation/references/LICENSE.md +21 -0
- package/bundled-skills/repo-foundation/references/bootstrap.md +63 -0
- package/bundled-skills/repo-foundation/references/companion.md +9 -0
- package/bundled-skills/repo-foundation/references/continuity.md +50 -0
- package/bundled-skills/repo-foundation/references/evolution.md +60 -0
- package/bundled-skills/repo-foundation/references/migration-examples.md +53 -0
- package/bundled-skills/repo-foundation/references/shared-contracts.md +48 -0
- package/bundled-skills/repo-foundation/references/verification.md +50 -0
- package/bundled-skills/repo-native-refactor/SKILL.md +225 -0
- package/bundled-skills/repo-native-refactor/references/LICENSE.md +21 -0
- package/bundled-skills/repo-native-refactor/references/deterministic-tooling.md +101 -0
- package/bundled-skills/repo-native-refactor/references/error-reliability.md +117 -0
- package/bundled-skills/repo-native-refactor/references/finding-taxonomy.md +181 -0
- package/bundled-skills/repo-native-refactor/references/refactor-examples.md +77 -0
- package/bundled-skills/repo-native-refactor/references/repository-prose.md +157 -0
- package/bundled-skills/repo-native-refactor/references/repository-rehabilitation.md +94 -0
- package/bundled-skills/repo-native-refactor/references/semantic-risk.md +187 -0
- package/bundled-skills/repo-native-refactor/references/shared-contracts.md +48 -0
- package/bundled-skills/repo-native-refactor/references/testing-integrity.md +103 -0
- package/bundled-skills/smart-contract-formal-verification/SKILL.md +136 -0
- package/bundled-skills/smart-contract-upgrade-governance/SKILL.md +130 -0
- package/bundled-skills/soroban-contract-audit/SKILL.md +136 -0
- package/bundled-skills/soroban-liquidity-pool/SKILL.md +118 -0
- package/bundled-skills/soroban-oracle-data-feed-audit/SKILL.md +118 -0
- package/bundled-skills/soroban-storage-ttl-lifecycle/SKILL.md +118 -0
- package/bundled-skills/soroban-token-minter/SKILL.md +124 -0
- package/bundled-skills/stellar-anchor-integration/SKILL.md +136 -0
- package/bundled-skills/stellar-asset-clawback-compliance/SKILL.md +118 -0
- package/bundled-skills/stellar-escrow-timelock/SKILL.md +118 -0
- package/bundled-skills/stellar-multisig-threshold-coordinator/SKILL.md +112 -0
- package/bundled-skills/tech-writing-proofread/SKILL.md +78 -0
- package/bundled-skills/typescript-expert/scripts/ts_diagnostic.py +40 -19
- package/bundled-skills/waf-setup/SKILL.md +1 -1
- package/bundled-skills/web3-rate-limiting-circuit-breaker/SKILL.md +130 -0
- package/bundled-skills/web3-transaction-relayer-pool/SKILL.md +124 -0
- package/bundled-skills/youtube-summarizer/SKILL.md +3 -3
- package/bundled-skills/zk-proof-verification-pipeline/SKILL.md +124 -0
- package/package.json +1 -1
- package/skills_index.json +1059 -0
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: stellar-multisig-threshold-coordinator
|
|
3
|
+
description: 'Multi-signature signer and threshold coordination register: weight configurations, master key locks, and cosigner quorum thresholds for Stellar.'
|
|
4
|
+
category: engineering
|
|
5
|
+
risk: safe
|
|
6
|
+
source: self
|
|
7
|
+
source_type: self
|
|
8
|
+
date_added: "2026-10-01"
|
|
9
|
+
author: Ranjeet2063
|
|
10
|
+
tags: [stellar, multisig, security, governance, web3, auth]
|
|
11
|
+
tools: []
|
|
12
|
+
source_repo: Ranjeet2063/agentic-awesome-skills
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Stellar Multi-Sig Threshold Coordinator
|
|
16
|
+
|
|
17
|
+
**What it is:** Maintains cryptographic signer weights, transaction authorization thresholds, and master key security boundaries for multi-signature accounts on Stellar.
|
|
18
|
+
|
|
19
|
+
## Overview
|
|
20
|
+
|
|
21
|
+
Provides a standardized, auditable framework and data model for **Stellar Multi-Sig Threshold Coordinator** operations across distributed engineering and decentralized application systems.
|
|
22
|
+
|
|
23
|
+
## When to Use This Skill
|
|
24
|
+
|
|
25
|
+
- When formalizing architectural contracts, security invariants, or operational limits for Stellar Multi-Sig Threshold Coordinator.
|
|
26
|
+
- When cross-functional review is required between protocol developers, smart contract auditors, and AI engineering agents.
|
|
27
|
+
- When generating reproducible CSV, SQL DDL, JSON Schema, and Notion property registers for tracking compliance.
|
|
28
|
+
|
|
29
|
+
## How It Works
|
|
30
|
+
|
|
31
|
+
1. Define the parameters, thresholds, and identity bindings required for the target operational register.
|
|
32
|
+
2. Select appropriate boundary enforcement values from validated enum select sets.
|
|
33
|
+
3. Export standardized artifacts (CSV table, SQL DDL, JSON Schema) to integrate into validation CI pipelines.
|
|
34
|
+
|
|
35
|
+
## Field Reference
|
|
36
|
+
|
|
37
|
+
| # | Field Name | Type | SQL Type | JSON Schema Type | Notion Property Type | Example Value |
|
|
38
|
+
|---|------------|------|----------|------------------|----------------------|---------------|
|
|
39
|
+
| 1 | Coordination Record ID | `id` | `SERIAL PRIMARY KEY` | `integer` | Text | `MSIG-001` |
|
|
40
|
+
| 2 | Controlled Account ID | `text` | `VARCHAR(56)` | `string` | Text | `GCTRL...` |
|
|
41
|
+
| 3 | Low Threshold Weight | `number` | `INTEGER` | `number` | Number | `1` |
|
|
42
|
+
| 4 | Medium Threshold Weight | `number` | `INTEGER` | `number` | Number | `2` |
|
|
43
|
+
| 5 | High Threshold Weight | `number` | `INTEGER` | `number` | Number | `3` |
|
|
44
|
+
| 6 | Master Key Weight | `number` | `INTEGER` | `number` | Number | `0` |
|
|
45
|
+
| 7 | Active Signers Count | `number` | `INTEGER` | `number` | Number | `4` |
|
|
46
|
+
| 8 | Signer Weight Sum | `number` | `INTEGER` | `number` | Number | `4` |
|
|
47
|
+
| 9 | Quorum Configuration State | `select` | `VARCHAR(32)` | `string` | Select | `Secured` |
|
|
48
|
+
| 10 | Emergency Override Signer | `text` | `VARCHAR(56)` | `string` | Text | `GEMERG...` |
|
|
49
|
+
| 11 | Threshold Audit Timestamp | `date` | `DATE` | `string, format: date` | Date | `2026-10-01` |
|
|
50
|
+
|
|
51
|
+
## Select Options
|
|
52
|
+
|
|
53
|
+
**Quorum Configuration State**
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Draft Pending | Secured | Sub-Quorum Warning | Degraded Key
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
## Relations
|
|
60
|
+
|
|
61
|
+
- `Audit Reference` -> links to the formal review documentation or test repository.
|
|
62
|
+
- `Target Architecture` -> links to the deployed contract or autonomous agent runtime component.
|
|
63
|
+
|
|
64
|
+
## Examples
|
|
65
|
+
|
|
66
|
+
**Prompt**
|
|
67
|
+
|
|
68
|
+
```
|
|
69
|
+
How do I configure and track Stellar Multi-Sig Threshold Coordinator for our production environment?
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
**Recommended Next Step**
|
|
73
|
+
|
|
74
|
+
> Generate the unified field schema, SQL DDL migration, and JSON validation schema to register into your system catalog.
|
|
75
|
+
>
|
|
76
|
+
> Workflow: Define criteria -> Run automated verification -> Record baseline -> Monitor invariants.
|
|
77
|
+
|
|
78
|
+
## Best Practices
|
|
79
|
+
|
|
80
|
+
- Enforce strict typing on numerical bounds and currency amounts; avoid unstructured free-text fields for critical states.
|
|
81
|
+
- Re-run validation test suites on every state-altering commit or parameter change.
|
|
82
|
+
- Keep example data synthetic and isolated from production cryptographic keys or private endpoints.
|
|
83
|
+
|
|
84
|
+
## Limitations
|
|
85
|
+
|
|
86
|
+
- Provides architectural specifications, data models, and verification schemas; does not execute direct transaction signing without authorized external tooling.
|
|
87
|
+
- Requires network connectivity and valid RPC credentials when querying on-chain states.
|
|
88
|
+
|
|
89
|
+
## Security & Safety Notes
|
|
90
|
+
|
|
91
|
+
- All parameters declare `risk: safe`. No unauthorized state modification or privileged credential access is performed.
|
|
92
|
+
- Use synthetic dummy keys and mock addresses in test suites and local verification scripts.
|
|
93
|
+
|
|
94
|
+
## Common Pitfalls
|
|
95
|
+
|
|
96
|
+
- **Problem:** Mismatched decimal precision between contract runtime and database register.
|
|
97
|
+
**Solution:** Always verify decimals using the explicit field mapping in this reference.
|
|
98
|
+
- **Problem:** Missing authorization checks prior to state update.
|
|
99
|
+
**Solution:** Cross-validate against the Security Audit register before deployment.
|
|
100
|
+
|
|
101
|
+
## Related Skills
|
|
102
|
+
|
|
103
|
+
- @stellar-anchor-integration - covers SEP-10 and SEP-24 anchor compliance flows.
|
|
104
|
+
- @stellar-escrow-timelock - covers conditional escrow and timelock settlement.
|
|
105
|
+
- @soroban-contract-audit - provides the security checklist and vulnerability categorization.
|
|
106
|
+
|
|
107
|
+
## Reusable Prompt
|
|
108
|
+
|
|
109
|
+
```
|
|
110
|
+
I want to establish a verified Stellar Multi-Sig Threshold Coordinator register for our production protocol.
|
|
111
|
+
Guide me through the required field parameters and output the corresponding SQL DDL and JSON Schema.
|
|
112
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: tech-writing-proofread
|
|
3
|
+
description: "Proofreads English technical writing for typos, grammar, punctuation, terminology consistency, jargon, and structure; returns an itemized Original → Suggestion → Reason list without rewriting the document. Use when asked to proofread or polish a technical doc, README, or blog draft."
|
|
4
|
+
category: writing
|
|
5
|
+
risk: safe
|
|
6
|
+
source: https://github.com/alapha888/agent-skills-en
|
|
7
|
+
source_repo: alapha888/agent-skills-en
|
|
8
|
+
source_type: community
|
|
9
|
+
date_added: "2026-10-01"
|
|
10
|
+
author: alapha888
|
|
11
|
+
tags: [proofreading, technical-writing, editing]
|
|
12
|
+
tools: [claude, cursor, gemini, codex]
|
|
13
|
+
license: MIT
|
|
14
|
+
license_source: https://github.com/alapha888/agent-skills-en/blob/main/LICENSE
|
|
15
|
+
---
|
|
16
|
+
|
|
17
|
+
# Technical Writing Proofreading
|
|
18
|
+
|
|
19
|
+
Take an English technical document from "understandable" to "publishable." Proofread only — never rewrite content. Flag suspected factual errors; do not silently fix them.
|
|
20
|
+
|
|
21
|
+
## When to Use
|
|
22
|
+
|
|
23
|
+
- Use when the user asks to proofread, polish, or review an English technical doc, README, or blog draft.
|
|
24
|
+
- Use when terminology consistency or jargon needs checking across a document.
|
|
25
|
+
|
|
26
|
+
## Workflow
|
|
27
|
+
|
|
28
|
+
1. **Read for tone first**: Read the whole document and identify its type (tutorial / API reference / blog post / README). Tutorials tolerate a conversational voice; API references must be precise.
|
|
29
|
+
2. **Build a terminology list**: Scan for key terms (e.g. "callback" vs "callback function", "sign in" vs "log in") and check whether one concept is named several ways. Standardize on the most frequent form and note it in the checklist.
|
|
30
|
+
3. **Check paragraph by paragraph**, but only for these six categories — do not drift into "is this paragraph well written":
|
|
31
|
+
- Typos and spelling: transposed letters, doubled words ("the the"), commonly confused pairs ("affect/effect", "its/it's", "complement/compliment").
|
|
32
|
+
- Grammar: subject-verb agreement, verb tense consistency within a procedure, dangling modifiers, missing articles before singular countable nouns.
|
|
33
|
+
- Punctuation: consistent serial (Oxford) comma usage; hyphens in compound adjectives ("command-line tool"); no double spaces after periods; consistent use of em dashes vs parentheses.
|
|
34
|
+
- Inline code and proper nouns: inline code, commands, file names, and paths in backticks; proper nouns in their official casing (`GitHub`, not `github`; `JavaScript`, not `Javascript`).
|
|
35
|
+
- Sentence style: prefer active voice ("The system calls the function" over "The function is called by the system"); cut filler ("basically", "simply", "just", "very"); one idea per sentence.
|
|
36
|
+
- Structure: headings in parallel form; lists use parallel items; steps in a procedure are imperative and numbered; acronyms are expanded on first use.
|
|
37
|
+
4. **Output the checklist**: list items as "Original → Suggestion → Reason", with line numbers or short quotes. Mark uncertain items `[verify]` instead of forcing a change.
|
|
38
|
+
5. **Close with statistics**: N items total, of which typos x, grammar y, terminology z, style w — so the author sees the distribution at a glance.
|
|
39
|
+
|
|
40
|
+
## Rules
|
|
41
|
+
|
|
42
|
+
- Fix language, not facts. A suspected factual error becomes `[verify] This contradicts the usual definition — please confirm`, never a silent "correction."
|
|
43
|
+
- Do not rewrite whole paragraphs. Even a wordy paragraph gets only specific, fixable sentences flagged; keep the author's voice.
|
|
44
|
+
- One pass only. Do not keep "polishing another round" — the deliverable is a "no-defects" checklist, not a perfect text.
|
|
45
|
+
|
|
46
|
+
## Minimal example
|
|
47
|
+
|
|
48
|
+
Input snippet:
|
|
49
|
+
|
|
50
|
+
```text
|
|
51
|
+
This function will be called by the system after the data is ready, you can use it to basically handle the registration of the callback, the timeout is 5 s, examples on github can be referenced.
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Output checklist:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
1. [Style] "will be called by the system" → "the system calls" (passive → active)
|
|
58
|
+
2. [Style] "basically handle" → "handle" (cut filler word)
|
|
59
|
+
3. [Terminology] "callback" — if written elsewhere as "callback function", unify on one form (most frequent wins)
|
|
60
|
+
4. [Grammar] run-on sentence: split after "ready." into two sentences
|
|
61
|
+
5. [Proper noun] "github" → "GitHub" (official casing)
|
|
62
|
+
|
|
63
|
+
Statistics: 5 items — style 2, terminology 1, grammar 1, proper noun 1.
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Limitations
|
|
67
|
+
|
|
68
|
+
- Proofreads; it does not rewrite. Voice, structure and argument are preserved, so a document that is poorly argued stays poorly argued after review.
|
|
69
|
+
- The technical claims themselves are out of scope: an uncertain statement is left intact rather than silently "corrected" into a different fact.
|
|
70
|
+
- Terminology consistency is judged against the document's own dominant usage, not against an external glossary unless the user supplies one.
|
|
71
|
+
- Only English proofreading is claimed. Other languages, translation quality and localisation review are outside this skill.
|
|
72
|
+
|
|
73
|
+
## Anti-patterns
|
|
74
|
+
|
|
75
|
+
- ❌ Turning proofreading into rewriting: tearing a paragraph down so the author's voice and structure are lost.
|
|
76
|
+
- ❌ Hallucinated "corrections": changing an uncertain technical statement as if it were a typo, introducing a factual error.
|
|
77
|
+
- ❌ Typos-only checks: inconsistent terminology and sloppy structure are the real defects in technical docs.
|
|
78
|
+
- ❌ Endless iteration: the user says "polish it once more" and it never ends — the deliverable is the checklist, not a perfect text.
|
|
@@ -10,21 +10,42 @@ import os
|
|
|
10
10
|
import json
|
|
11
11
|
from pathlib import Path
|
|
12
12
|
|
|
13
|
-
def run_cmd(
|
|
14
|
-
"""Run
|
|
13
|
+
def run_cmd(args):
|
|
14
|
+
"""Run a command as an argument list (no shell) and return its output."""
|
|
15
15
|
try:
|
|
16
|
-
result = subprocess.run(
|
|
16
|
+
result = subprocess.run(args, capture_output=True, text=True)
|
|
17
17
|
return result.stdout + result.stderr
|
|
18
18
|
except Exception as e:
|
|
19
19
|
return str(e)
|
|
20
20
|
|
|
21
|
+
def grep_source_count(pattern: str, exclude: str | None = None) -> tuple[int, list[str]]:
|
|
22
|
+
"""Count and sample lines containing ``pattern`` under ``src/``.
|
|
23
|
+
|
|
24
|
+
Pure-Python replacement for ``grep -r ... src/`` so no shell is involved.
|
|
25
|
+
"""
|
|
26
|
+
root = Path("src")
|
|
27
|
+
if not root.is_dir():
|
|
28
|
+
return 0, []
|
|
29
|
+
matches: list[str] = []
|
|
30
|
+
for path in sorted(root.rglob("*")):
|
|
31
|
+
if path.suffix not in (".ts", ".tsx") or not path.is_file():
|
|
32
|
+
continue
|
|
33
|
+
try:
|
|
34
|
+
text = path.read_text(encoding="utf-8", errors="replace")
|
|
35
|
+
except OSError:
|
|
36
|
+
continue
|
|
37
|
+
for lineno, line in enumerate(text.splitlines(), start=1):
|
|
38
|
+
if pattern in line and (exclude is None or exclude not in line):
|
|
39
|
+
matches.append(f"{path}:{lineno}:{line}")
|
|
40
|
+
return len(matches), matches
|
|
41
|
+
|
|
21
42
|
def check_versions():
|
|
22
43
|
"""Check TypeScript and Node versions."""
|
|
23
44
|
print("\n📦 Versions:")
|
|
24
45
|
print("-" * 40)
|
|
25
46
|
|
|
26
|
-
ts_version = run_cmd("npx tsc --version
|
|
27
|
-
node_version = run_cmd("node -v
|
|
47
|
+
ts_version = run_cmd(["npx", "tsc", "--version"]).strip()
|
|
48
|
+
node_version = run_cmd(["node", "-v"]).strip()
|
|
28
49
|
|
|
29
50
|
print(f" TypeScript: {ts_version or 'Not found'}")
|
|
30
51
|
print(f" Node.js: {node_version or 'Not found'}")
|
|
@@ -134,11 +155,12 @@ def check_type_errors():
|
|
|
134
155
|
print("\n🔍 Type Check:")
|
|
135
156
|
print("-" * 40)
|
|
136
157
|
|
|
137
|
-
result = run_cmd("npx tsc --noEmit
|
|
158
|
+
result = run_cmd(["npx", "tsc", "--noEmit"])
|
|
159
|
+
lines = result.splitlines()
|
|
138
160
|
if "error TS" in result:
|
|
139
161
|
errors = result.count("error TS")
|
|
140
162
|
print(f" ❌ {errors}+ type errors found")
|
|
141
|
-
print(
|
|
163
|
+
print("\n".join(lines[:20])[:500])
|
|
142
164
|
else:
|
|
143
165
|
print(" ✅ No type errors")
|
|
144
166
|
|
|
@@ -147,13 +169,11 @@ def check_any_usage():
|
|
|
147
169
|
print("\n⚠️ 'any' Type Usage:")
|
|
148
170
|
print("-" * 40)
|
|
149
171
|
|
|
150
|
-
|
|
151
|
-
count
|
|
152
|
-
if count and count != "0":
|
|
172
|
+
count, matches = grep_source_count(": any")
|
|
173
|
+
if count:
|
|
153
174
|
print(f" ⚠️ Found {count} occurrences of ': any'")
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
print(sample)
|
|
175
|
+
if matches:
|
|
176
|
+
print("\n".join(matches[:5]))
|
|
157
177
|
else:
|
|
158
178
|
print(" ✅ No explicit 'any' types found")
|
|
159
179
|
|
|
@@ -162,9 +182,8 @@ def check_type_assertions():
|
|
|
162
182
|
print("\n⚠️ Type Assertions (as):")
|
|
163
183
|
print("-" * 40)
|
|
164
184
|
|
|
165
|
-
|
|
166
|
-
count
|
|
167
|
-
if count and count != "0":
|
|
185
|
+
count, _ = grep_source_count(" as ", exclude="import")
|
|
186
|
+
if count:
|
|
168
187
|
print(f" ⚠️ Found {count} type assertions")
|
|
169
188
|
else:
|
|
170
189
|
print(" ✅ No type assertions found")
|
|
@@ -174,9 +193,11 @@ def check_performance():
|
|
|
174
193
|
print("\n⏱️ Type Check Performance:")
|
|
175
194
|
print("-" * 40)
|
|
176
195
|
|
|
177
|
-
result = run_cmd("npx tsc --extendedDiagnostics --noEmit
|
|
178
|
-
|
|
179
|
-
|
|
196
|
+
result = run_cmd(["npx", "tsc", "--extendedDiagnostics", "--noEmit"])
|
|
197
|
+
keys = ("Check time", "Files:", "Lines:", "Nodes:")
|
|
198
|
+
lines = [line for line in result.splitlines() if any(k in line for k in keys)]
|
|
199
|
+
if lines:
|
|
200
|
+
for line in lines:
|
|
180
201
|
print(f" {line}")
|
|
181
202
|
else:
|
|
182
203
|
print(" ⚠️ Could not measure performance")
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: web3-rate-limiting-circuit-breaker
|
|
3
|
+
description: 'On-chain and relayer rate-limiting circuit breaker register: throughput thresholds, emergency pause triggers, and multi-sig recovery.'
|
|
4
|
+
category: engineering
|
|
5
|
+
risk: safe
|
|
6
|
+
source: self
|
|
7
|
+
source_type: self
|
|
8
|
+
date_added: "2026-10-01"
|
|
9
|
+
author: Ranjeet2063
|
|
10
|
+
tags: [security, rate-limiting, circuit-breaker, defi, infrastructure, web3]
|
|
11
|
+
tools: []
|
|
12
|
+
source_repo: Ranjeet2063/agentic-awesome-skills
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Web3 Rate-Limiting & Circuit Breakers
|
|
16
|
+
|
|
17
|
+
**What it is:** Establishes automated defensive circuit breakers, rate-limiting windows, and volume surge throttles across Web3 smart contracts and relayers.
|
|
18
|
+
|
|
19
|
+
## Overview
|
|
20
|
+
|
|
21
|
+
Provides a standardized, auditable framework and data model for **Web3 Rate-Limiting & Circuit Breakers** operations across distributed engineering and decentralized application systems.
|
|
22
|
+
|
|
23
|
+
## When to Use This Skill
|
|
24
|
+
|
|
25
|
+
- When formalizing architectural contracts, security invariants, or operational limits for Web3 Rate-Limiting & Circuit Breakers.
|
|
26
|
+
- When cross-functional review is required between protocol developers, smart contract auditors, and AI engineering agents.
|
|
27
|
+
- When generating reproducible CSV, SQL DDL, JSON Schema, and Notion property registers for tracking compliance.
|
|
28
|
+
|
|
29
|
+
## How It Works
|
|
30
|
+
|
|
31
|
+
1. Define the parameters, thresholds, and identity bindings required for the target operational register.
|
|
32
|
+
2. Select appropriate boundary enforcement values from validated enum select sets.
|
|
33
|
+
3. Export standardized artifacts (CSV table, SQL DDL, JSON Schema) to integrate into validation CI pipelines.
|
|
34
|
+
|
|
35
|
+
## Field Reference
|
|
36
|
+
|
|
37
|
+
| # | Field Name | Type | SQL Type | JSON Schema Type | Notion Property Type | Example Value |
|
|
38
|
+
|---|------------|------|----------|------------------|----------------------|---------------|
|
|
39
|
+
| 1 | Breaker Policy ID | `id` | `SERIAL PRIMARY KEY` | `integer` | Text | `CB-001` |
|
|
40
|
+
| 2 | Target Service / Protocol | `text` | `VARCHAR(64)` | `string` | Text | `Soroban Minting Endpoint` |
|
|
41
|
+
| 3 | Rate Limit Window Seconds | `number` | `INTEGER` | `number` | Number | `60` |
|
|
42
|
+
| 4 | Max Requests Allowed Per Window | `number` | `INTEGER` | `number` | Number | `10` |
|
|
43
|
+
| 5 | Volume Spike Surge Cap % | `number` | `NUMERIC(6,2)` | `number` | Number | `300.00` |
|
|
44
|
+
| 6 | Circuit Breaker Trigger | `select` | `VARCHAR(64)` | `string` | Select | `Automated Anomaly Detection` |
|
|
45
|
+
| 7 | Emergency Pause Activated | `select` | `VARCHAR(16)` | `string` | Select | `No` |
|
|
46
|
+
| 8 | Multi-Sig Unfreeze Required | `select` | `VARCHAR(16)` | `string` | Select | `Yes` |
|
|
47
|
+
| 9 | Cooldown Duration Minutes | `number` | `INTEGER` | `number` | Number | `30` |
|
|
48
|
+
| 10 | Breaker Operational State | `select` | `VARCHAR(32)` | `string` | Select | `Guarded Normal` |
|
|
49
|
+
| 11 | Configuration Audit Date | `date` | `DATE` | `string, format: date` | Date | `2026-10-01` |
|
|
50
|
+
|
|
51
|
+
## Select Options
|
|
52
|
+
|
|
53
|
+
**Circuit Breaker Trigger**
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Automated Anomaly Detection | Price Oracle Divergence | Drain Threshold Exceeded | Manual Admin
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Emergency Pause Activated**
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Yes | No
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Multi-Sig Unfreeze Required**
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Yes | No
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
**Breaker Operational State**
|
|
72
|
+
|
|
73
|
+
```
|
|
74
|
+
Guarded Normal | Tripped (Paused) | Cooldown Recovery | Bypass Mode
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Relations
|
|
78
|
+
|
|
79
|
+
- `Audit Reference` -> links to the formal review documentation or test repository.
|
|
80
|
+
- `Target Architecture` -> links to the deployed contract or autonomous agent runtime component.
|
|
81
|
+
|
|
82
|
+
## Examples
|
|
83
|
+
|
|
84
|
+
**Prompt**
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
How do I configure and track Web3 Rate-Limiting & Circuit Breakers for our production environment?
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
**Recommended Next Step**
|
|
91
|
+
|
|
92
|
+
> Generate the unified field schema, SQL DDL migration, and JSON validation schema to register into your system catalog.
|
|
93
|
+
>
|
|
94
|
+
> Workflow: Define criteria -> Run automated verification -> Record baseline -> Monitor invariants.
|
|
95
|
+
|
|
96
|
+
## Best Practices
|
|
97
|
+
|
|
98
|
+
- Enforce strict typing on numerical bounds and currency amounts; avoid unstructured free-text fields for critical states.
|
|
99
|
+
- Re-run validation test suites on every state-altering commit or parameter change.
|
|
100
|
+
- Keep example data synthetic and isolated from production cryptographic keys or private endpoints.
|
|
101
|
+
|
|
102
|
+
## Limitations
|
|
103
|
+
|
|
104
|
+
- Provides architectural specifications, data models, and verification schemas; does not execute direct transaction signing without authorized external tooling.
|
|
105
|
+
- Requires network connectivity and valid RPC credentials when querying on-chain states.
|
|
106
|
+
|
|
107
|
+
## Security & Safety Notes
|
|
108
|
+
|
|
109
|
+
- All parameters declare `risk: safe`. No unauthorized state modification or privileged credential access is performed.
|
|
110
|
+
- Use synthetic dummy keys and mock addresses in test suites and local verification scripts.
|
|
111
|
+
|
|
112
|
+
## Common Pitfalls
|
|
113
|
+
|
|
114
|
+
- **Problem:** Mismatched decimal precision between contract runtime and database register.
|
|
115
|
+
**Solution:** Always verify decimals using the explicit field mapping in this reference.
|
|
116
|
+
- **Problem:** Missing authorization checks prior to state update.
|
|
117
|
+
**Solution:** Cross-validate against the Security Audit register before deployment.
|
|
118
|
+
|
|
119
|
+
## Related Skills
|
|
120
|
+
|
|
121
|
+
- @cross-chain-relayer-audit - covers message hashes, nonces and quorum proofs.
|
|
122
|
+
- @smart-contract-formal-verification - verifies state invariants mathematically.
|
|
123
|
+
- @soroban-contract-audit - provides the security checklist and vulnerability categorization.
|
|
124
|
+
|
|
125
|
+
## Reusable Prompt
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
I want to establish a verified Web3 Rate-Limiting & Circuit Breakers register for our production protocol.
|
|
129
|
+
Guide me through the required field parameters and output the corresponding SQL DDL and JSON Schema.
|
|
130
|
+
```
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: web3-transaction-relayer-pool
|
|
3
|
+
description: 'Gasless transaction relayer node pool register: fee sponsorship limits, nonce synchronization, and balance replenishment alerts.'
|
|
4
|
+
category: engineering
|
|
5
|
+
risk: safe
|
|
6
|
+
source: self
|
|
7
|
+
source_type: self
|
|
8
|
+
date_added: "2026-10-01"
|
|
9
|
+
author: Ranjeet2063
|
|
10
|
+
tags: [web3, relayer, gasless, meta-transactions, stellar, infrastructure]
|
|
11
|
+
tools: []
|
|
12
|
+
source_repo: Ranjeet2063/agentic-awesome-skills
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
# Web3 Transaction Relayer Pool Management
|
|
16
|
+
|
|
17
|
+
**What it is:** Coordinates sponsored meta-transaction nodes, fee reservation pools, and cryptographic nonce tracking for frictionless Web3 user onboarding.
|
|
18
|
+
|
|
19
|
+
## Overview
|
|
20
|
+
|
|
21
|
+
Provides a standardized, auditable framework and data model for **Web3 Transaction Relayer Pool Management** operations across distributed engineering and decentralized application systems.
|
|
22
|
+
|
|
23
|
+
## When to Use This Skill
|
|
24
|
+
|
|
25
|
+
- When formalizing architectural contracts, security invariants, or operational limits for Web3 Transaction Relayer Pool Management.
|
|
26
|
+
- When cross-functional review is required between protocol developers, smart contract auditors, and AI engineering agents.
|
|
27
|
+
- When generating reproducible CSV, SQL DDL, JSON Schema, and Notion property registers for tracking compliance.
|
|
28
|
+
|
|
29
|
+
## How It Works
|
|
30
|
+
|
|
31
|
+
1. Define the parameters, thresholds, and identity bindings required for the target operational register.
|
|
32
|
+
2. Select appropriate boundary enforcement values from validated enum select sets.
|
|
33
|
+
3. Export standardized artifacts (CSV table, SQL DDL, JSON Schema) to integrate into validation CI pipelines.
|
|
34
|
+
|
|
35
|
+
## Field Reference
|
|
36
|
+
|
|
37
|
+
| # | Field Name | Type | SQL Type | JSON Schema Type | Notion Property Type | Example Value |
|
|
38
|
+
|---|------------|------|----------|------------------|----------------------|---------------|
|
|
39
|
+
| 1 | Relayer Node ID | `id` | `SERIAL PRIMARY KEY` | `integer` | Text | `RELAY-001` |
|
|
40
|
+
| 2 | Relayer Public Key | `text` | `VARCHAR(56)` | `string` | Text | `GRLY...` |
|
|
41
|
+
| 3 | Network Environment | `select` | `VARCHAR(32)` | `string` | Select | `Stellar Public Mainnet` |
|
|
42
|
+
| 4 | Fee Reserve Balance XLM | `currency` | `NUMERIC(14,7)` | `number` | Number | `450.0000000` |
|
|
43
|
+
| 5 | Min Balance Alert Threshold | `currency` | `NUMERIC(14,7)` | `number` | Number | `50.0000000` |
|
|
44
|
+
| 6 | Daily Sponsored Tx Limit | `number` | `INTEGER` | `number` | Number | `5000` |
|
|
45
|
+
| 7 | Current Day Tx Count | `number` | `INTEGER` | `number` | Number | `1240` |
|
|
46
|
+
| 8 | Max Fee Bps Per Operation | `number` | `INTEGER` | `number` | Number | `100` |
|
|
47
|
+
| 9 | Relayer Operational Health | `select` | `VARCHAR(32)` | `string` | Select | `Active Online` |
|
|
48
|
+
| 10 | Automatic Rebalance Enabled | `select` | `VARCHAR(16)` | `string` | Select | `Yes` |
|
|
49
|
+
| 11 | Last Health Ping Date | `date` | `DATE` | `string, format: date` | Date | `2026-10-01` |
|
|
50
|
+
|
|
51
|
+
## Select Options
|
|
52
|
+
|
|
53
|
+
**Network Environment**
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Stellar Public Mainnet | Stellar Testnet | Ethereum Mainnet | Arbitrum One
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
**Relayer Operational Health**
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
Active Online | Low Balance Warning | Nonce Desync | Offline Paused
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
**Automatic Rebalance Enabled**
|
|
66
|
+
|
|
67
|
+
```
|
|
68
|
+
Yes | No
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
## Relations
|
|
72
|
+
|
|
73
|
+
- `Audit Reference` -> links to the formal review documentation or test repository.
|
|
74
|
+
- `Target Architecture` -> links to the deployed contract or autonomous agent runtime component.
|
|
75
|
+
|
|
76
|
+
## Examples
|
|
77
|
+
|
|
78
|
+
**Prompt**
|
|
79
|
+
|
|
80
|
+
```
|
|
81
|
+
How do I configure and track Web3 Transaction Relayer Pool Management for our production environment?
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
**Recommended Next Step**
|
|
85
|
+
|
|
86
|
+
> Generate the unified field schema, SQL DDL migration, and JSON validation schema to register into your system catalog.
|
|
87
|
+
>
|
|
88
|
+
> Workflow: Define criteria -> Run automated verification -> Record baseline -> Monitor invariants.
|
|
89
|
+
|
|
90
|
+
## Best Practices
|
|
91
|
+
|
|
92
|
+
- Enforce strict typing on numerical bounds and currency amounts; avoid unstructured free-text fields for critical states.
|
|
93
|
+
- Re-run validation test suites on every state-altering commit or parameter change.
|
|
94
|
+
- Keep example data synthetic and isolated from production cryptographic keys or private endpoints.
|
|
95
|
+
|
|
96
|
+
## Limitations
|
|
97
|
+
|
|
98
|
+
- Provides architectural specifications, data models, and verification schemas; does not execute direct transaction signing without authorized external tooling.
|
|
99
|
+
- Requires network connectivity and valid RPC credentials when querying on-chain states.
|
|
100
|
+
|
|
101
|
+
## Security & Safety Notes
|
|
102
|
+
|
|
103
|
+
- All parameters declare `risk: safe`. No unauthorized state modification or privileged credential access is performed.
|
|
104
|
+
- Use synthetic dummy keys and mock addresses in test suites and local verification scripts.
|
|
105
|
+
|
|
106
|
+
## Common Pitfalls
|
|
107
|
+
|
|
108
|
+
- **Problem:** Mismatched decimal precision between contract runtime and database register.
|
|
109
|
+
**Solution:** Always verify decimals using the explicit field mapping in this reference.
|
|
110
|
+
- **Problem:** Missing authorization checks prior to state update.
|
|
111
|
+
**Solution:** Cross-validate against the Security Audit register before deployment.
|
|
112
|
+
|
|
113
|
+
## Related Skills
|
|
114
|
+
|
|
115
|
+
- @cross-chain-relayer-audit - covers message hashes, nonces and quorum proofs.
|
|
116
|
+
- @web3-rate-limiting-circuit-breaker - provides operational guardrails and threshold breakers.
|
|
117
|
+
- @soroban-contract-audit - provides the security checklist and vulnerability categorization.
|
|
118
|
+
|
|
119
|
+
## Reusable Prompt
|
|
120
|
+
|
|
121
|
+
```
|
|
122
|
+
I want to establish a verified Web3 Transaction Relayer Pool Management register for our production protocol.
|
|
123
|
+
Guide me through the required field parameters and output the corresponding SQL DDL and JSON Schema.
|
|
124
|
+
```
|
|
@@ -312,10 +312,10 @@ echo "[████████████████████] 100% - Step
|
|
|
312
312
|
```markdown
|
|
313
313
|
# [Video Title]
|
|
314
314
|
|
|
315
|
-
**
|
|
316
|
-
**
|
|
315
|
+
**Channel:** [Channel Name]
|
|
316
|
+
**Duration:** [Duration]
|
|
317
317
|
**URL:** [https://youtube.com/watch?v=VIDEO_ID]
|
|
318
|
-
**
|
|
318
|
+
**Published:** [Date if available]
|
|
319
319
|
|
|
320
320
|
|
|
321
321
|
## 📝 Detailed Summary
|