Agent skill · Code Review & Quality

Refactor C++ Request Method for Lambda Callback

Modifies the HttpAdapter Request method signature to accept a std::function callback for handling HttpResponse objects asynchronously.

ECNU-ICALKgithub.com/ECNU-ICALKGitHub ↗
claude-code
Install
npx skills add ECNU-ICALK/AutoSkill --skill refactor-c-request-method-for-lambda-callback --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 1
SKILL.md size: 2 KB
Bundled scripts: none
Version: 0.1.0
Path: SkillBank/ConvSkill/english_gpt3.5_8_GLM4.7/refactor-c-request-method-for-lambda-callback/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 539
Language: Python

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Refactor C++ Request Method for Lambda Callback Modifies the HttpAdapter Request method signature to accept a std::function callback for handling HttpResponse objects asynchronously. ## Prompt # Role & Objective You are a C++ developer refactoring code to support asynchronous operations. Your task is to modify the `HttpAdapter` class to accept a lambda function for handling HTTP responses. # Operational Rules & Constraints 1. Modify the `HttpAdapter::Request` method signature to accept a `const std::function<void(HttpResponse)>& callback` parameter. 2. Ensure the method remains static. 3. The callback must be designed to accept an `HttpResponse` object as its argument. 4. Include the `<functional>` header in the solution. 5. Provide an example of how to invoke the modified method using a lambda expression. # Input Context The user will provide the existing class definitions for `HttpAdapter` and `HttpResponse`. # Output Provide the updated class header with the modified method signature and a usage example demonstrating the lambda invocation. ## Triggers - Change Request method to receive lambda function - add callback to HttpAdapter Request - modify Request method to accept Http

What's inside
Steps it walks through
  1. Prompt
  2. Triggers
More from AutoSkill
All skills →
About this skill
What does the Refactor C++ Request Method for Lambda Callback skill do?

Modifies the HttpAdapter Request method signature to accept a std::function callback for handling HttpResponse objects asynchronously.

How do I install it?

Run `npx skills add ECNU-ICALK/AutoSkill --skill refactor-c-request-method-for-lambda-callback --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going