Clawdbot automates repetitive coding tasks for engineers using Claude Code, Cursor, Windsurf, Cline, and Codex. It speeds up development workflows by handling boilerplate code, refactoring, and simple bug fixes. Engineers benefit from faster code generation and reduced manual effort, allowing them to focus on complex problem-solving.
npx skills add sh/agentsClawdbot automates repetitive coding tasks for engineers using Claude Code, Cursor, Windsurf, Cline, and Codex. It speeds up development workflows by handling boilerplate code, refactoring, and simple bug fixes. Engineers benefit from faster code generation and reduced manual effort, allowing them to focus on complex problem-solving.
[{"step":"Identify the repetitive coding task to automate. This could be boilerplate code generation, refactoring, or bug fixes. Document the specific requirements and constraints for the task.","tip":"Use your IDE's (VS Code, Cursor, etc.) built-in tools to analyze the codebase and identify patterns that could be automated. Look for functions with similar structures or repetitive logic."},{"step":"Open your IDE and invoke Clawdbot with a clear prompt. Use the prompt template provided above, filling in [SPECIFIC_TASK], [PROJECT_NAME], [CODE_SECTION], and [REQUIREMENTS]. For example, 'Use Clawdbot to automate the creation of a new API endpoint in the 'user-service' repository.'","tip":"Be as specific as possible with your requirements. Include technical details like frameworks, libraries, and coding standards your team follows. The more precise your prompt, the better the output."},{"step":"Review Clawdbot's generated code and test cases. Check for correctness, adherence to requirements, and potential issues. Make any necessary adjustments to the generated code.","tip":"Use your IDE's comparison tools (e.g., VS Code's diff viewer) to review changes. Pay special attention to edge cases and error handling. If Clawdbot generates tests, run them to verify functionality."},{"step":"Integrate the changes into your project. Commit the changes to your version control system (e.g., Git) and run your project's test suite to ensure no regressions.","tip":"Use tools like GitHub Copilot or Sourcegraph to cross-reference the generated code with existing patterns in your codebase. This ensures consistency with your team's coding standards."},{"step":"Monitor the automated code in production. Gather feedback from your team and use it to refine future Clawdbot prompts. Track metrics like development time saved and bug reduction.","tip":"Set up automated monitoring for the new code (e.g., error tracking, performance metrics). Use this data to continuously improve Clawdbot's prompts and outputs."}]
automating data entry
scheduling appointments
generating reports
npx skills add sh/agentsgit clone https://github.com/sh/agentsCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Use Clawdbot to automate [SPECIFIC_TASK] in the [PROJECT_NAME] repository. Focus on [CODE_SECTION] and apply the following requirements: [REQUIREMENTS]. Ensure the changes are tested by generating a minimal test case. Provide a summary of the changes made and the test results. Example: 'Use Clawdbot to automate the creation of a new API endpoint in the 'user-service' repository. Focus on the 'auth' module and apply the following requirements: JWT authentication, rate limiting of 100 requests per minute, and OpenAPI documentation. Ensure the changes are tested by generating a minimal test case. Provide a summary of the changes made and the test results.'
### Clawdbot Automation Report: API Endpoint Creation
**Task:** Automated the creation of a new `/auth/refresh` endpoint in the `user-service` repository.
**Requirements Applied:**
- JWT authentication middleware
- Rate limiting: 100 requests/minute
- OpenAPI (Swagger) documentation
- Input validation for refresh token
**Changes Made:**
1. Created `src/routes/auth/refresh.js` with the following structure:
```javascript
const express = require('express');
const rateLimit = require('express-rate-limit');
const jwt = require('jsonwebtoken');
const router = express.Router();
const refreshTokenLimiter = rateLimit({
windowMs: 60 * 1000,
max: 100,
message: 'Too many refresh requests from this IP, please try again later'
});
router.post('/refresh', refreshTokenLimiter, async (req, res) => {
const { refreshToken } = req.body;
if (!refreshToken) {
return res.status(400).json({ error: 'Refresh token is required' });
}
try {
const payload = jwt.verify(refreshToken, process.env.REFRESH_SECRET);
const newAccessToken = jwt.sign(
{ userId: payload.userId },
process.env.ACCESS_SECRET,
{ expiresIn: '15m' }
);
res.json({ accessToken: newAccessToken });
} catch (err) {
res.status(401).json({ error: 'Invalid refresh token' });
}
});
module.exports = router;
```
2. Updated `src/routes/index.js` to include the new route:
```javascript
const authRoutes = require('./auth/refresh');
app.use('/auth', authRoutes);
```
3. Added OpenAPI documentation in `docs/swagger.json`:
```json
{
"paths": {
"/auth/refresh": {
"post": {
"summary": "Refresh access token",
"requestBody": {
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"refreshToken": {"type": "string"}
},
"required": ["refreshToken"]
}
}
}
},
"responses": {
"200": {
"description": "New access token generated",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"accessToken": {"type": "string"}
}
}
}
}
}
}
}
}
}
}
```
**Test Results:**
Clawdbot generated and executed the following test case in `tests/auth/refresh.test.js`:
```javascript
const request = require('supertest');
const app = require('../../src/app');
const jwt = require('jsonwebtoken');
describe('POST /auth/refresh', () => {
it('should return 400 if no refresh token provided', async () => {
const res = await request(app)
.post('/auth/refresh')
.send({});
expect(res.statusCode).toEqual(400);
expect(res.body.error).toBe('Refresh token is required');
});
it('should return 401 for invalid refresh token', async () => {
const res = await request(app)
.post('/auth/refresh')
.send({ refreshToken: 'invalid.token.here' });
expect(res.statusCode).toEqual(401);
expect(res.body.error).toBe('Invalid refresh token');
});
it('should return 200 and new access token for valid refresh token', async () => {
const validToken = jwt.sign({ userId: 123 }, process.env.REFRESH_SECRET);
const res = await request(app)
.post('/auth/refresh')
.send({ refreshToken: validToken });
expect(res.statusCode).toEqual(200);
expect(res.body.accessToken).toBeDefined();
});
});
```
**Test Execution:**
- All tests passed (3/3)
- Code coverage: 100% for the new endpoint
- No breaking changes to existing functionality
**Summary:**
The `/auth/refresh` endpoint was successfully automated with all requirements met. The implementation includes proper authentication, rate limiting, and documentation. The generated test cases verify functionality and edge cases. Total lines of code added: 67 (excluding tests).Your AI Networking Co-Pilot
Your one-stop shop for church and ministry supplies.
Control SaaS spending with visibility and analytics
Automate your browser workflows effortlessly
CI/CD automation with build configuration as code
Enhance performance monitoring and root cause analysis with real-time distributed tracing.
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan