cirrus-uchicago/symbolon/replace-fixed-array-with-stream-processing

Claude Code and agent skill by cirrus-uchicago/symbolon

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use when code uses fixed-size arrays with scanf to read input strings

Install

npx vskill@latest install cirrus-uchicago/symbolon/replace-fixed-array-with-stream-processing

SKILL.md

The same SKILL.md was published earlier as cirrus-uchicago/symbolon/replace-fixed-array-with-stream-processing.

replace-fixed-array-with-stream-processing

Overview

A KLEE-coverage code transformation. Applying it rewrites C source so symbolic execution explores more of the program's behavior.

When to use

When code uses fixed-size arrays with scanf to read input strings

Transformation

Replace array-based input reading with character-by-character stream processing using getchar(), processing each character as it's read

Why it helps

Fixed-size arrays create symbolic memory regions that KLEE must reason about holistically, while stream processing allows KLEE to explore paths incrementally per character, reducing constraint complexity and enabling earlier path pruning

Example

Before:

c
#include<stdio.h>
int main()
{
int i,b=0,c=0;
char s[5];
scanf("%s",s);
for(i=0;i<3;i++)
{
if(s[i]=='R')c++;
else
c=0;
b=c>b?c:b;
}
printf("%d\n",b);
}

After:

c
#include<stdio.h>
int main(void)
{
int rainy=0,max=0,c=getchar();
while(c=='R'||c=='S'){{if(c=='R')rainy++;else rainy=0;}max=max<rainy?rainy:max;c=getchar();}
return printf("%d\n",max),0;
}

Evidence

  • Average coverage delta: 0.3333
  • Source problems: train_AtCoder_p02582
  • Rule id: 5fcee4d0

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
11
7-day trend score
17

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cirrus-uchicago/symbolon/replace-fixed-array-with-stream-processing/badge)](https://verified-skill.com/skills/cirrus-uchicago/symbolon/replace-fixed-array-with-stream-processing)

Something wrong with this skill or its page? Tell us.