brainstorming
Structured design dialogue that validates ideas before implementation begins.
la-bench-workflow
Orchestrate the complete LA-Bench experimental procedure generation workflow from JSONL input to validated output. This skill should be used when processing LA-Bench format experimental data to generate and validate detailed experimental procedures. It coordinates parsing, reference fetching, pro...
Full skill instructions
Orchestrate the complete LA-Bench experimental procedure generation and validation pipeline. This skill coordinates four specialized components:
All intermediate and final outputs are saved to standardized directory structure: workdir/{filename}_{entry_id}/
Use this skill when:
Extract experimental data from JSONL file using la-bench-parser skill.
Input:
data/public_test.jsonl)public_test_1)Execution:
# Extract filename without extension
filename=$(basename "data/public_test.jsonl" .jsonl) # "public_test"
# Create working directory
mkdir -p workdir/${filename}_${entry_id}
# Parse entry
python .claude/skills/la-bench-parser/scripts/parse_labench.py \
data/public_test.jsonl ${entry_id} \
> workdir/${filename}_${entry_id}/input.json
Output:
workdir/{filename}_{entry_id}/input.jsonContent:
Fetch reference URLs using web-reference-fetcher skill if references exist in input.json.
Input:
Execution:
mkdir -p workdir/${filename}_${entry_id}/references
# For each reference URL (ref_1, ref_2, ...)
python3 .claude/skills/web-reference-fetcher/scripts/fetch_url.py \
"${reference_url}" \
--output workdir/${filename}_${entry_id}/references/ref_${i}.md
Output:
workdir/{filename}_{entry_id}/references/ref_1.mdworkdir/{filename}_{entry_id}/references/ref_2.mdNote: If references cannot be fetched or URLs are inaccessible, proceed to Step 3 without reference materials.
Generate detailed procedure using procedure-generator skill.
Input:
workdir/{filename}_{entry_id}/input.jsonworkdir/{filename}_{entry_id}/references/ref_*.md (if available)Process:
Output:
workdir/{filename}_{entry_id}/procedure.jsonFormat:
[
{"id": 1, "text": "First step with quantitative details..."},
{"id": 2, "text": "Second step with quantitative details..."},
...
]
Validate procedure using procedure-checker skill with 10-point scoring system. Automatically improve procedure until score ≥ 8/10 or maximum iterations reached.
Target Quality: Score ≥ 8/10 points (Good or Excellent)
Input:
workdir/{filename}_{entry_id}/input.jsonworkdir/{filename}_{entry_id}/procedure.jsonIterative Improvement Process:
For each iteration (attempt 1, 2, 3):
Formal Validation (Script-based)
# Create wrapped version
python3 -c "
import json
with open('workdir/${filename}_${entry_id}/procedure.json', 'r') as f:
steps = json.load(f)
wrapped = {'procedure_steps': steps}
with open('workdir/${filename}_${entry_id}/procedure_wrapped.json', 'w') as f:
json.dump(wrapped, f, ensure_ascii=False, indent=2)
"
# Run validation
python .claude/skills/procedure-checker/scripts/validate_procedure.py \
workdir/${filename}_${entry_id}/procedure_wrapped.json
Semantic Evaluation (Subagent-based)
Combine Results
workdir/{filename}_{entry_id}/review_v{iteration}.mdCheck Score
Generate Improvement Instructions (if score < 8)
Extract specific issues from review and create targeted improvement prompt:
Analysis:
review_v{iteration}.mdImprovement Prompt Template:
The previous procedure (v{iteration}) scored {score}/10 points.
Regenerate the procedure addressing these specific issues:
## Failed Common Criteria:
{list of failed criteria with specific examples from review}
## Failed Individual Criteria:
{list of failed criteria with specific examples}
## Critical Issues to Fix:
{numbered list from review}
## Must-Fix Recommendations:
{numbered list from review}
## Specific Corrections Required:
{detailed corrections extracted from review}
Maintain all strengths from the previous version while addressing these issues.
Regenerate Procedure
workdir/{filename}_{entry_id}/procedure.json (overwrite)workdir/{filename}_{entry_id}/procedure_v{iteration}.jsonLoop Back to Step 4.1 (next iteration)
Per Iteration:
workdir/{filename}_{entry_id}/procedure_v{N}.json (archived versions)workdir/{filename}_{entry_id}/review_v{N}.md (archived reviews)Final:
workdir/{filename}_{entry_id}/procedure.json (best version)workdir/{filename}_{entry_id}/review.md (final review, symlink or copy of best)workdir/{filename}_{entry_id}/procedure_wrapped.json (temporary)Review Format:
Report completion with comprehensive summary including iteration history:
Successfully processed: {entry_id}
Directory: workdir/{filename}_{entry_id}/
├── input.json ✅
├── references/
│ ├── ref_1.md ✅ (if applicable)
│ └── ref_2.md ✅ (if applicable)
├── procedure.json ✅ (final version)
├── procedure_v1.json ✅ (if improved)
├── procedure_v2.json ✅ (if improved)
├── review.md ✅ (final review)
├── review_v1.md ✅ (if improved)
└── review_v2.md ✅ (if improved)
Iteration History:
┌─────────────┬────────┬──────────┬──────────────┬────────────┐
│ Iteration │ Score │ Common │ Individual │ Status │
├─────────────┼────────┼──────────┼──────────────┼────────────┤
│ v1 (Initial)│ 6/10 │ 4/5 │ 2/5 │ 🔄 Improve │
│ v2 │ 7/10 │ 5/5 │ 2/5 │ 🔄 Improve │
│ v3 (Final) │ 8/10 │ 5/5 │ 3/5 │ ✅ Accept │
└─────────────┴────────┴──────────┴──────────────┴────────────┘
Final Procedure Quality:
- Total Score: 8/10 points (⬆️ +2 from initial)
- Common Criteria: 5/5 points (✅ Perfect)
- Individual Criteria: 3/5 points (Improved from 2/5)
- Rating: ⭐⭐⭐⭐ (Good)
- Recommendation: ✅ ACCEPT
- Iterations Required: 3 attempts
Improvements Made:
1. v1→v2: Fixed calculation errors, improved parameter reflection (+1pt)
2. v2→v3: Enhanced individual criteria compliance (+1pt)
Next Steps: Procedure is ready for use. Review review.md for detailed feedback.
Success Scenarios:
Immediate Success (Score ≥ 8 on first attempt)
Iteration History: ✅ Single attempt (v1: 9/10)
Status: Excellent quality achieved immediately
Improvement Success (Score ≥ 8 after iterations)
Iteration History: 🔄 3 attempts (v1: 6→v2: 7→v3: 8)
Status: Target quality achieved through iterative improvement
Partial Success (Score < 8 after max iterations)
Iteration History: ⚠️ 3 attempts (v1: 5→v2: 6→v3: 7)
Status: Max iterations reached. Best score: 7/10 (Needs manual review)
Warning: Target quality (8/10) not achieved. Manual refinement recommended.
To process multiple entries from the same JSONL file:
Example:
# Process public_test_1, public_test_2, public_test_3
for entry_id in public_test_1 public_test_2 public_test_3; do
echo "Processing ${entry_id}..."
# Run la-bench-workflow skill for each entry
done
Directory Structure:
workdir/
├── public_test_public_test_1/
│ ├── input.json
│ ├── references/
│ ├── procedure.json
│ └── review.md
├── public_test_public_test_2/
│ └── ...
└── public_test_public_test_3/
└── ...
Issue: JSONL file not found
Issue: Entry ID not found in JSONL
Issue: Reference fetch fails
Issue: Procedure generation fails formal validation
Issue: Low quality score (<5/10)
Common Criteria (5 points):
Deductions:
Special Restriction:
Individual Criteria (5 points):
Quality Thresholds:
If stuck at low scores (<6/10) after iterations:
If stuck at medium scores (6-7/10):
This skill orchestrates:
See individual skill documentation for detailed specifications.
All outputs use the standardized pattern: workdir/{filename}_{entry_id}/
Examples:
| JSONL File | Entry ID | Directory |
|---|---|---|
| data/public_test.jsonl | public_test_1 | workdir/public_test_public_test_1/ |
| data/private_test_input.jsonl | private_test_5 | workdir/private_test_input_private_test_5/ |
| data/validation.jsonl | exp_042 | workdir/validation_exp_042/ |
Filename extraction:
from pathlib import Path
filename = Path("data/public_test.jsonl").stem # "public_test"
entry_id = "public_test_1"
dir_name = f"{filename}_{entry_id}" # "public_test_public_test_1"
User: "Process public_test_1 from data/public_test.jsonl"
Assistant workflow:
1. Parse: Extract entry to workdir/public_test_public_test_1/input.json ✅
2. Fetch: Download 2 references to workdir/public_test_public_test_1/references/ ✅
3. Generate: Create procedure.json (40 steps) ✅
4. Validate (Iteration 1):
- Formal: ✅ PASSED (40/50 steps, all ≤10 sentences)
- Semantic: 9/10 points (Common: 5/5, Individual: 4/5)
- Status: ✅ TARGET ACHIEVED (≥8/10)
5. Report: Procedure rated "Excellent" (⭐⭐⭐⭐⭐)
Result: Single iteration achieved excellent quality
Next: Review workdir/public_test_public_test_1/review.md for detailed feedback
User: "Process public_test_5 from data/public_test.jsonl"
Assistant workflow:
1. Parse: Extract entry ✅
2. Fetch: Download references ✅
3. Generate: Create initial procedure ✅
4. Validate and Improve:
Iteration 1:
- Formal: ✅ PASSED
- Semantic: 6/10 points (Common: 4/5, Individual: 2/5)
- Issues: Missing parameter specifications, incomplete object usage
- Status: 🔄 IMPROVE (score < 8)
Iteration 2:
- Regenerate with fixes for missing parameters
- Formal: ✅ PASSED
- Semantic: 7/10 points (Common: 5/5, Individual: 2/5)
- Issues: Individual criteria still weak (cost efficiency)
- Status: 🔄 IMPROVE (score < 8)
Iteration 3:
- Regenerate with cost efficiency improvements
- Formal: ✅ PASSED
- Semantic: 8/10 points (Common: 5/5, Individual: 3/5)
- Status: ✅ TARGET ACHIEVED
5. Report: Final score 8/10 after 3 iterations (⬆️ +2 from initial)
Result: Iterative improvement achieved target quality
Files: procedure_v1.json, procedure_v2.json, procedure.json (final)
Reviews: review_v1.md, review_v2.md, review.md (final)
User: "Process complex_experiment_1 from data/validation.jsonl"
Assistant workflow:
1-3. [Parse, Fetch, Generate] ✅
4. Validate and Improve:
Iteration 1: 5/10 (Critical issues with quantitative accuracy)
Iteration 2: 6/10 (Improved accuracy, but logical structure issues)
Iteration 3: 7/10 (Further improvements, but individual criteria still weak)
Status: ⚠️ MAX ITERATIONS REACHED
5. Report:
- Best Score: 7/10 (Good, but below target)
- Recommendation: ⚠️ REVISE with manual review
- Warning: Automatic improvement could not achieve 8/10
- Action: Manual refinement recommended
Result: Best effort achieved 7/10
Recommendation: Review all iteration histories to identify persistent issues
This workflow is conducted for academic research purposes to evaluate and improve experimental planning quality and safety. All generated procedures should prioritize:
Structured design dialogue that validates ideas before implementation begins.
Comprehensive design intelligence for web and mobile UI/UX across 10 technology stacks.
Comprehensive implementation plans for multi-step tasks, breaking down specs into bite-sized, testable steps.
Introduction to the obra skills system with mandatory skill invocation rules and best practices.
Execute a written implementation plan with critical review and task checkpoints.
Delegate independent tasks to specialized agents working concurrently with isolated context.
Isolated git worktrees with smart directory selection and safety verification.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Plan searchable and shareable content that drives traffic, builds authority, and generates leads.
README-first repository scanner that extracts commands and classifies reproduction candidates without executing them.
Brainstorm and prioritize marketing strategies tailored to your SaaS stage, budget, and goals.
Plan and optimize your website's page hierarchy, navigation, URL structure, and internal linking.
The world's fastest calendar for remote work
Capture, organize, and utilize your knowledge effortlessly.
Instant Summaries of Audio & Video Interviews with AnySummary
Transform PDFs into engaging mind maps.
Chat with any PDF instantly
Create an optimal daily plan using your voice
A productivity platform to centralize organizational knowledge and workflows with contextual AI assistance.
AskYourPDF Pricing Plans: Tailored to Your Needs