Clawping

From cschanhniem/clawping · View interactive version

Clawping is an AI agent skill from the GitHub repository cschanhniem/clawping. > Auto-generated skill from repository analysis

How to use this skill

Skill file

# clawping Development Patterns

> Auto-generated skill from repository analysis

## Overview
This skill introduces the core development patterns and conventions found in the `clawping` TypeScript codebase. It covers file naming, import/export styles, commit message conventions, and testing patterns, providing practical examples and suggested commands for efficient workflow management. While no specific frameworks or automated workflows are detected, this guide ensures consistency and clarity for contributors.

## Coding Conventions

### File Naming
- Use **camelCase** for all file names.
  - **Example:** `pingService.ts`, `networkUtils.ts`

### Import Style
- Use **relative imports** for internal modules.
  - **Example:**
    ```typescript
    import { pingHost } from './pingService';
    ```

### Export Style
- Use **named exports** for all modules.
  - **Example:**
    ```typescript
    // pingService.ts
    export function pingHost(address: string): Promise<boolean> {
      // implementation
    }
    ```

### Commit Messages
- Follow **Conventional Commits** with the `chore` prefix.
  - **Example:**  
    ```
    chore: update dependencies for security patch
    ```

## Workflows

### Code Contribution
**Trigger:** When adding new features, bug fixes, or improvements  
**Command:** `/contribute`

1. Create a new branch from `main`.
2. Write code using camelCase file names and relative imports.
3. Use named exports for all modules.
4. Add or update tests in files matching `*.test.*`.
5. Commit changes using the `chore` prefix and a concise message.
6. Open a pull request for review.

### Testing
**Trigger:** Before pushing or merging changes  
**Command:** `/test`

1. Identify test files by the `*.test.*` pattern.
2. Run all tests using your preferred TypeScript-compatible test runner.
3. Ensure all tests pass before merging.

## Testing Patterns

- Test files are named with the pattern `*.test.*` (e.g., `pingService.test.ts`).
- The specific test framework is not detected; use a TypeScript-compatible test runner (such as Jest or Mocha).
- Example test file:
  ```typescript
  // pingService.test.ts
  import { pingHost } from './pingService';

  describe('pingHost', () => {
    it('should return true for reachable hosts', async () => {
      const result = await pingHost('127.0.0.1');
      expect(result).toBe(true);
    });
  });
  ```

## Commands
| Command      | Purpose                                      |
|--------------|----------------------------------------------|
| /contribute  | Start the code contribution workflow         |
| /test        | Run all tests in the repository              |
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.