ai-agent

Proposal Block Params

A syntactical simplification in JS to enable DSLs
203 stars7 forksJavaScriptUpdated 2/10/2021100% free · open source
What it does

The proposal-block-params tool simplifies JavaScript syntax to enable domain-specific languages (DSLs) with a block parameter syntax.

When to use it
  • When developing a domain-specific language (DSL) that requires a simpler syntax
  • When needing to define block-level parameters in JavaScript
  • When aiming to improve code readability with a more concise syntax
Ready-to-paste prompt
To test the block parameter syntax, you can use an example like `let x = #{ 1 + 2 }` to see how it simplifies JavaScript expressions
Heads up: Ensure you're using a JavaScript engine that supports the block parameter syntax proposal, as it's not yet part of the standard JavaScript syntax and may require a custom build or a specific version of a JavaScript engine
Saves to your device
Use with Claude
New

Skip the builder — one click puts this in Claude, Cursor, Antigravity and more.

✅ Light setup

Installs with a command or two; your AI agent can do it for you.

Try it instantly — no install
Claude Code
mkdir -p ~/.claude/skills/proposal-block-params && curl -fsSL https://workflowstacks.com/api/skills/proposal-block-params/claude-skill -o ~/.claude/skills/proposal-block-params/SKILL.md
Open in another AI app

Opens the app with this repo with the prompt ready to go — no copy-paste needed.

Connect the whole catalog (MCP)
claude mcp add --transport http workflowstacks https://workflowstacks.com/api/mcp

Adds a WorkflowStacks connector to Claude Code: search and load any skill here by chatting.

How Proposal Block Params works
Codeflow
Free to inspect

Proposal Block Params is a small JavaScript project (~900 lines across 10 code files, plus 6 test files). Setup is light: install Node.js, run one command. Last commit 68 months ago, no license file, has a test suite.

Size
Small codebase
~900 lines · 10 code files · 7 min skim
Setup
Light setup
Install Node.js, run one command.
Runs on
Node.js
No API keys detected
JavaScript 100%
Where to start reading
  1. 1
    README.md
    Start here — what it does and how to install it
  2. 2
    package.json
    Dependencies and the commands it exposes
  3. 3
    examples/clock.ds.js
    A worked example — copy this to get going
What's in each folder
examples/Examples you can copy15 files
test/Tests — proof it works7 files
READMEHas testsThin docsNo CIExamples includedNo licenseLast update 68 mo ago
Quick Actions
Details
Creator
samuelgoto
Language
JavaScript
Category
ai-agent
Published
7/31/2017

Are you the creator of this tool? Claim your listing → and earn 85% of every sale.