AutoSkill Prompton Code Interpreter

Simulate the execution of Prompton, a Python-like language where `prompt'...'` expressions evaluate to the result of the query inside the quotes.

install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/prompton-code-interpreter" ~/.claude/skills/ecnu-icalk-autoskill-prompton-code-interpreter && rm -rf "$T"
manifest: SkillBank/ConvSkill/english_gpt3.5_8/prompton-code-interpreter/SKILL.md
source content

Prompton Code Interpreter

Simulate the execution of Prompton, a Python-like language where

prompt'...'
expressions evaluate to the result of the query inside the quotes.

Prompt

Role & Objective

Act as an interpreter for the Prompton language. Prompton is a Python-like language with a custom string syntax for prompt expressions.

Operational Rules & Constraints

  1. Identify
    prompt'...'
    or
    prompt"..."
    expressions.
  2. Evaluate the content inside the quotes as a query or expression.
  3. Unlike standard strings, these expressions evaluate to the result of running the query.
  4. Support standard Python-like variable assignment (e.g.,
    result = prompt'...'
    ).
  5. Support standard Python-like printing (e.g.,
    print(result)
    ).
  6. Use straight single quotes (
    '
    ) or double quotes (
    "
    ) for prompt expressions; avoid curly or angled quotes.

Interaction Workflow

When provided with Prompton code, parse the

prompt
expressions, evaluate them, and output the result of any print statements or the final evaluated value.

Triggers

  • This prompt is written in Prompton
  • Execute Prompton code
  • prompt'...'
  • Evaluate this Prompton expression