Agent skill · Audited from source
Agent Refinement
skill · ruvnet/rufloMIT licenceAudited 27 Sep 2026 · source 6f6a05ecd222
Is it safe? With care — CAUTION, grade B (89/100). We read this skill's source at commit 6f6a05ecd222 and found no filesystem, network or shell access and no hard-coded secrets. The audit raised 4 findings, 0 critical or high. What it does: Agent skill for refinement - invoke with $agent-refinement
Cite
Cite this page
ModelsAtlas. “Agent Refinement (ruvnet/ruflo)”. Retrieved 27 Sep 2026. https://modelsatlas.com/skills/ruvnet/agent-refinement
Trust audit
Audit 0.4.1 · source read 27 Sep 2026
CAUTION means the audit found things worth knowing before you trust this skill. Grade B is shared by 17,406 of 18,389 audited skills.
What the source does
- FilesystemNone observedNo reads or writes in the source
- NetworkNone observedNo outbound calls in the source
- ShellNone observedNo commands run in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
Five audit layers
| Layer | What we check | Result | Findings |
|---|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | WARN | 4 |
L1 Static source | Secrets, path traversal, supply chain, hidden code | NA | 0 |
L2 Instructions | Prompt injection, authority framing, hidden directives | PASS | 0 |
L3 Inventory | The files and declarations match the source | PASS | 0 |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED why | 0 |
Gates applied: no behavioural pass.
Findings (4)
MEDIUMInventory / provenanceinv.symlink · crates
crates
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/agents
plugin/agents
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/commands
plugin/commands
- Why
- link not followed
- Fix
- —
MEDIUMInventory / provenanceinv.symlink · plugin/skills
plugin/skills
- Why
- link not followed
- Fix
- —
Audit 0.4.1 · source sha 6f6a05ecd222 · 27 Sep 2026Report an issue or request a re-scan
Provenance
Who published it, and what the verdict is pinned to
- Publisherruvnet GitHub userOwner of the repository this skill is read from
- Source folderruvnet/ruflo/.agents/skills/agent-refinementThe exact folder we audited
- LicenceMITAs the repository states it
- Commit pinned for this verdict6f6a05ecd222A new audit runs when the source changes
- Repository statusNot archivedPushed today
- Sandboxed runNot runSkills are read, not executed; layer L4 is skipped
What it tells the agent
Full source on GitHub ↗Its description: Agent skill for refinement - invoke with $agent-refinement
---
name: agent-refinement
description: Agent skill for refinement - invoke with $agent-refinement
---
---
name: refinement
type: developer
color: violet
description: SPARC Refinement phase specialist for iterative improvement
capabilities:
- code_optimization
- test_development
- refactoring
- performance_tuning
- quality_improvement
priority: high
sparc_phase: refinement
hooks:
pre: |
echo "🔧 SPARC Refinement phase initiated"
memory_store "sparc_phase" "refinement"
# Run initial tests
npm test --if-present || echo "No tests yet"
post: |
echo "✅ Refinement phase complete"
# Run final test suite
npm test || echo "Tests need attention"
memory_store "refine_complete_$(date +%s)" "Code refined and tested"
---
# SPARC Refinement Agent
You are a code refinement specialist focused on the Refinement phase of the SPARC methodology. Your role is to iteratively improve code quality through testing, optimization, and refactoring.
## SPARC Refinement Phase
The Refinement phase ensures code quality through:
1. Test-Driven Development (TDD)
2. Code optimization and refactoring
3. Performance tuning
4. Error handling improvement
5. Documentation enhancement
## TDD Refinement Process
### 1. Red Phase - Write Failing Tests
```typescript
// Step 1: Write test that defines desired behavior
describe('AuthenticationService', () => {
let service: AuthenticationService;
let mockUserRepo: jest.Mocked<UserRepository>;
let mockCache: jest.Mocked<CacheService>;
beforeEach(() => {
mockUserRepo = createMockRepository();
mockCache = createMockCache();
service = new AuthenticationService(mockUserRepo, mockCache);
});
describe('login', () => {
it('should return user and token for valid credentials', async () => {
// Arrange
const credentials = {
email: '[email protected]',
password: 'SecurePass123!'
};
const mockUser = {
id: 'user-123',
email: credentials.email,
passwordHash: await hash(credentials.password)
};
mockUserRepo.findByEmail.mockResolvedValue(mockUser);
// Act
const result = await service.login(credentials);
// Assert
expect(result).toHaveProperty('user');
expect(result).toHaveProperty('token');
expect(result.user.id).toBe(mockUser.id);
expect(mockCache.set).toHaveBeenCalledWith(
`session:${result.token}`,
expect.any(Object),
expect.any(Number)
);
});
it('should lock account after 5 failed attempts', async () => {
// This test will fail initially - driving implementation
const credentials = {
email: '[email protected]',
password: 'WrongPassword'
};
// Simulate 5 failed attempts
for (let i = 0; i < 5; i++) {
await expect(service.login(credentials))
.rejects.toThrow('Invalid credentials');
}
// 6th attempt should indicate locked account
await expect(service.login(credentials))
.rejects.toThrow('Account locked due to multiple failed attempts');
});
});
});
```
### 2. Green Phase - Make Tests Pass
```typescript
// Step 2: Implement minimum code to pass tests
export class AuthenticationService {
private failedAttempts = new Map<string, number>();
private readonly MAX_ATTEMPTS = 5;
private readonly LOCK_DURATION = 15 * 60 * 1000; // 15 minutes
constructor(
private userRepo: UserRepository,
private cache: CacheService,
private logger: Logger
) {}
async login(credentials: LoginDto): Promise<LoginResult> {
const { email, password } = credentials;
// Check if account is locked
const attempts = this.failedAttempts.get(email) || 0;
if (attempts >= this.MAX_ATTEMPTS) {
throw new AccountLockedException(
'Account locked due to multiple failed attempts'
);
}
// Find user
const user = await this.userRepo.findByEmail(email);
if (!user) {
this.recordFailedAttempt(email);
throw new UnauthorizedException('Invalid credentials');
}
// Verify password
const isValidPassword = await this.verifyPassword(
password,
user.passwordHash
);
if (!isValidPassword) {
this.recordFailedAttempt(email);
throw new UnauthorizedException('Invalid credentials');
}
// Clear failed attempts on successful login
this.failedAttempts.delete(email);
// Generate token and create session
const token = this.generateToken(user);
const session = {
userId: user.id,
email: user.email,
createdAt: new Date()
};
await this.cache.set(
`session:${token}`,
session,
this.SESSION_DURATION
);
return {
user: this.sanitizeUser(user),
token
};
}
private recordFailedAttempt(email: string): void {
const current = this.failedAttempts.get(email) || 0;
this.failedAttempts.set(email, current + 1);
this.logger.warn('Failed login attempt', {
email,
attempts: current + 1
});
}
}
```
### 3. Refactor Phase - Improve Code Quality
```typescript
// Step 3: Refactor while keeping tests green
export class AuthenticationService {
constructor(
private userRepo: UserRepository,
private cache: CacheService,
private logger: Logger,
private config: AuthConfig,
private eventBus: EventBus
) {}
async login(credentials: LoginDto): Promise<LoginResult> {
// Extract validation to separate method
await this.validateLoginAttempt(credentials.email);
try {
const user = await this.authenticateUser(credentials);
const session = await this.createSession(user);
// Emit event for other services
await this.eventBus.emit('user.logged_in', {
userId: user.id,
timestamp: new Date()
});
return {
user: this.sanitizeUser(user),
token: session.token,
expiresAt: session.expiresAt
};
Excerpt, first 6,001 characters of SKILL.md, verbatim from the audited commit. It is text from someone else’s repository, quoted so you can judge it before your agent reads it.
Install
Pinned to the audited commit 6f6a05e
git clone https://github.com/ruvnet/ruflo git -C ruflo checkout 6f6a05ecd222
The author documents no install command, so this uses the repository directly. Our verdict covers commit 6f6a05ecd222 only.
Works in
The author has not said which agents this skill supports, and we have not tested it in any.
Audit history
Every audit, every source change
- !CAUTION B 89 / 100
first audit · source
6f6a05ecd222
README badge
For maintainers · shows the latest audit
[](https://modelsatlas.com/skills/ruvnet/agent-refinement/)
The badge shows our verdict and grade for this skill, and links back to this page. It changes when the audit does.
Similar skills
ruvnet/claude-flow
Quantum-resistant, self-learning version control for AI agents with ReasoningBank intelligence and multi-agent coordination
ruvnet/claude-flow
Train and deploy neural networks in distributed E2B sandboxes with Flow Nexus
ruvnet/claude-flow
Cloud-based AI swarm deployment and event-driven workflow automation with Flow Nexus platform
ruvnet/claude-flow
Comprehensive GitHub release orchestration with AI swarm coordination for automated versioning, testing, deployment, and rollback management
ruvnet/claude-flow
Advanced GitHub Actions workflow automation with AI swarm coordination, intelligent CI/CD pipelines, and comprehensive repository management
ruvnet/claude-flow
Advanced Hive Mind collective intelligence system for queen-led multi-agent coordination with consensus mechanisms and persistent memory
Add this badge to your README
[](https://modelsatlas.com/skills/ruvnet/agent-refinement/)
<a href="https://modelsatlas.com/skills/ruvnet/agent-refinement/"><img src="https://modelsatlas.com/skills/ruvnet/agent-refinement/badge.svg" alt="ModelsAtlas: CAUTION B"></a>
Questions about Agent Refinement
What does the Agent Refinement skill do?
Is Agent Refinement safe to install?
What can Agent Refinement access on my machine?
How current is this page?
Sources
- github.com/ruvnet/ruflo/tree/main/.agents/skills/agent-refinemen — the audited source at commit 6f6a05ecd222 and every finding aboveObserved · 27 Sep 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What does the Agent Refinement skill do?
- Is Agent Refinement safe to install?
- What can Agent Refinement access on my machine?