Skip to content

Import agent-config baseline from brianlovin - #1

Merged
fantomsuj merged 1 commit into
mainfrom
fantomsuj/import-agent-config
Mar 1, 2026
Merged

Import agent-config baseline from brianlovin#1
fantomsuj merged 1 commit into
mainfrom
fantomsuj/import-agent-config

Conversation

@fantomsuj

@fantomsuj fantomsuj commented Mar 1, 2026

Copy link
Copy Markdown
Owner

This PR imports the agent-config baseline into this repo from brianlovin/agent-config. It adds install and sync scripts, testing docs/workflow, and the full Bats test suite. It also includes agents, skills, and supporting settings and statusline files for symlink-based config management. No existing files were modified beyond adding this new configuration set.

Summary by CodeRabbit

  • New Features

    • Added installation and synchronization scripts for managing agent configurations across machines.
    • Introduced comprehensive skills library with 20+ specialized tools (browser automation, design review, code optimization, deployment workflows).
    • Configuration system for agent settings, statusline display, and permissions.
  • Documentation

    • Added guides for agent setup, workflows, and skill management.
    • Comprehensive skill documentation with examples and best practices.
  • Tests

    • Integrated Bats testing framework with comprehensive test suite for validation.
    • GitHub Actions CI workflow for automated testing on commits and PRs.

@coderabbitai

coderabbitai Bot commented Mar 1, 2026

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info

Configuration used: defaults

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4b7c8b4 and aa5443e.

📒 Files selected for processing (49)
  • .claude/rules/testing.md
  • .claude/rules/workflows.md
  • .github/workflows/test.yml
  • .gitignore
  • AGENTS.md
  • CLAUDE.md
  • README.md
  • agents/security-reviewer.md
  • install.sh
  • settings.json
  • skills/agent-browser/SKILL.md
  • skills/bun/SKILL.md
  • skills/chrome-webstore-release-blueprint/SKILL.md
  • skills/deslop/SKILL.md
  • skills/electron-wrapper/references/build-and-distribute.md
  • skills/electron-wrapper/references/main-process.md
  • skills/electron-wrapper/references/pitfalls.md
  • skills/electron-wrapper/references/project-setup.md
  • skills/electron-wrapper/references/web-adaptation.md
  • skills/electron-wrapper/skill.md
  • skills/favicon/SKILL.md
  • skills/find-skills/SKILL.md
  • skills/fix-sentry-issues/SKILL.md
  • skills/knip/SKILL.md
  • skills/rams/SKILL.md
  • skills/react-doctor/SKILL.md
  • skills/reclaude/SKILL.md
  • skills/sentry/SKILL.md
  • skills/simplify/SKILL.md
  • skills/skill-creator/LICENSE.txt
  • skills/skill-creator/SKILL.md
  • skills/skill-creator/references/output-patterns.md
  • skills/skill-creator/references/workflows.md
  • skills/skill-creator/scripts/init_skill.py
  • skills/skill-creator/scripts/package_skill.py
  • skills/skill-creator/scripts/quick_validate.py
  • skills/tdd/SKILL.md
  • skills/tdd/deep-modules.md
  • skills/tdd/interface-design.md
  • skills/tdd/mocking.md
  • skills/tdd/refactoring.md
  • skills/tdd/tests.md
  • skills/workflow/SKILL.md
  • statusline.sh
  • sync.sh
  • tests/install.bats
  • tests/sync.bats
  • tests/test_helper.bash
  • tests/validation.bats

📝 Walkthrough

Walkthrough

This pull request introduces a comprehensive agent-config management system with installation and synchronization utilities, documentation for testing and workflows, multiple reusable skills for various development tasks, and an automated test suite. The system enables management of Claude/Codex agent configurations, skills, and settings across machines with backup and version control integration.

Changes

Cohort / File(s) Summary
Documentation & Setup
README.md, AGENTS.md, CLAUDE.md, agents/security-reviewer.md
Added comprehensive documentation for the agent-config repository, including quick start, configuration structure, validation requirements, and security review checklist for agents.
Rules & Workflows
.claude/rules/testing.md, .claude/rules/workflows.md
Added detailed guides for testing setup with Bats and managing Claude/Codex workflows across machines, covering installation, syncing, backups, and validation procedures.
Configuration & Ignores
settings.json, .gitignore, statusline.sh
Added Bash permissions configuration, status line rendering script reading JSON input, and ignore entries for backups and macOS artifacts.
Installation & Sync Scripts
install.sh, sync.sh
Added robust installer with conflict detection, backup mechanism, and comprehensive sync utility for managing skills, agents, and rules with dry-run support, validation, and undo capabilities.
Skills Documentation
skills/*/SKILL.md, skills/*/references/*.md, skills/skill-creator/*
Added 20+ skill definitions covering browser automation, build tools, code review, testing patterns, workflow orchestration, and skill creation tooling; includes helper scripts (init_skill.py, package_skill.py, quick_validate.py) and reference guides.
Test Infrastructure
.github/workflows/test.yml, tests/*.bats, tests/test_helper.bash
Added GitHub Actions workflow triggering on push/PR to main, comprehensive bats-based test suites for install.sh and sync.sh (with 215+ and 256+ lines respectively), validation tests, and test helper utilities providing environment setup and assertion functions.

Sequence Diagram

sequenceDiagram
    actor User
    participant CLI as install.sh
    participant Env as Environment
    participant FS as Filesystem
    participant BK as Backup System
    participant Git as Git/Repo

    User->>CLI: ./install.sh [--dry-run] [--force]
    CLI->>Env: Parse options, init HOME paths
    CLI->>FS: Check for existing config
    
    alt Conflicts detected
        CLI->>User: Prompt for resolution (overwrite/keep/diff/quit)
        User->>CLI: Choose action
        CLI->>BK: Create timestamped backup
        BK->>FS: Store original files
        BK->>FS: Write manifest.json
    else No conflicts
        CLI->>BK: Create preemptive backup
    end
    
    CLI->>FS: Create symlinks for settings.json
    CLI->>FS: Create symlinks for statusline.sh
    CLI->>FS: Link skills, agents, rules directories
    CLI->>Git: Validate repo items (SKILL.md check)
    
    alt Dry-run mode
        CLI->>User: Print intended actions
    else Normal run
        CLI->>FS: Apply all symlinks
        CLI->>BK: Write operation manifest
    end
    
    CLI->>User: Report success/backup location
    Note over User,Git: User can now sync changes or undo via sync.sh
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~45 minutes

The changes span heterogeneous file types (shell scripts, Python, documentation, configuration, tests) with high logic density in install.sh (~369 lines with conflict detection, backup, and symlink logic) and sync.sh (~710 lines with discovery, validation, git integration). While individual documentation files are straightforward, the orchestration logic across multiple scripts, backup mechanisms, and manifest management requires careful review of state transitions and error handling paths.

Poem

A warren of scripts, both Bash and Py, ✨
To manage Claude's wings across the sky,
With backups and symlinks in perfect dance,
Each skill finds its place—no second glance.
Through install and sync, configuration takes flight,
While tests keep the warren's burrows tight! 🐰

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fantomsuj/import-agent-config

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@fantomsuj
fantomsuj merged commit a733b77 into main Mar 1, 2026
1 of 2 checks passed
@gemini-code-assist

Copy link
Copy Markdown

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request integrates a foundational agent configuration system, enabling efficient management and synchronization of AI agent settings, skills, and rules. It introduces automated installation and synchronization scripts, a comprehensive testing framework, and a diverse set of pre-configured agents and skills. The changes aim to streamline AI-driven development by providing structured configuration, robust testing, and clear operational workflows, significantly enhancing the project's overall capability and maintainability.

Highlights

  • Agent Configuration Baseline: Imported a comprehensive agent configuration baseline from brianlovin/agent-config, establishing a structured foundation for AI agent settings, skills, and rules.
  • Automated Management Scripts: Introduced install.sh and sync.sh scripts to automate the setup, synchronization, and management of agent configurations, including handling symlinks, conflicts, and backups.
  • Robust Testing Framework: Integrated a Bats-based test suite with detailed documentation (.claude/rules/testing.md) and workflows (tests/install.bats, tests/sync.bats, tests/validation.bats) to ensure the reliability of configuration management scripts.
  • Diverse Agent Skills and Rules: Included a variety of pre-defined agents and skills such as security-reviewer, agent-browser, bun, chrome-webstore-release-blueprint, deslop, electron-wrapper, favicon, find-skills, fix-sentry-issues, knip, rams, react-doctor, reclaude, sentry, simplify, skill-creator, tdd, and workflow, significantly expanding the agent's capabilities.
  • Enhanced Documentation: Provided extensive documentation across AGENTS.md, README.md, and .claude/rules/ for understanding agent configuration, workflows, testing, and skill development.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • .claude/rules/testing.md
    • Added comprehensive documentation for Bats testing, covering running tests, test structure, writing tests, available helpers, tips, and CI integration.
  • .claude/rules/workflows.md
    • Added detailed documentation for agent configuration workflows, including setup, conflict handling, sync status, adding/removing items, backups, skill validation, dry-run mode, local-only items, and directory structure.
  • .gitignore
    • Added entries to ignore backup directories and macOS system files.
  • AGENTS.md
    • Added a top-level overview of agent configuration, including commands, testing, key files, and verification steps.
  • CLAUDE.md
    • Added a reference to AGENTS.md for agent configuration documentation.
  • README.md
    • Added a comprehensive README for agent-config, detailing quick start, included settings/skills, config management, backups, skill validation, testing, local-only config, creating custom configs, and related links.
  • agents/security-reviewer.md
    • Added a new agent definition for a security code reviewer, outlining checks for injection vulnerabilities, authentication flaws, secrets, data handling, and expected output format.
  • install.sh
    • Added a new bash script for installing agent configurations, handling symlinks, conflicts, and creating backups.
  • settings.json
    • Added a new JSON configuration file for global permissions, status line command, and AI thinking settings.
  • skills/agent-browser/SKILL.md
    • Added a new skill for browser automation, detailing commands for navigation, snapshots, interactions, information retrieval, state checks, screenshots, video recording, waits, mouse control, semantic locators, browser settings, cookies/storage, network, tabs/windows, frames, dialogs, JavaScript, examples, sessions, JSON output, and debugging.
  • skills/bun/SKILL.md
    • Added a new skill for using Bun as a JavaScript/TypeScript runtime and package manager, including command mappings, Bun-specific APIs, testing, frontend development, and documentation.
  • skills/chrome-webstore-release-blueprint/SKILL.md
    • Added a new skill providing a step-by-step guide for setting up Chrome Web Store API release automation, covering project discovery, credential setup, secret management, release workflow, status checker, verification, troubleshooting, and guardrails.
  • skills/deslop/SKILL.md
    • Added a new skill for removing AI-generated code 'slop,' focusing on unnecessary comments, defensive checks, and inconsistent style.
  • skills/electron-wrapper/references/build-and-distribute.md
    • Added documentation for building and distributing Electron apps, covering server bundling, Bun binary packaging, CI/CD workflows, code signing, and icon generation.
  • skills/electron-wrapper/references/main-process.md
    • Added documentation detailing implementation patterns for Electron's main process, including app entry point, server spawning, window management, and auto-update.
  • skills/electron-wrapper/references/pitfalls.md
    • Added documentation outlining common pitfalls and solutions when wrapping a Bun web app in Electron, such as module conflicts, preload scripts, __dirname issues, dev mode errors, Bun version mismatches, PATH issues, storage paths, white flash, dev server port, BrowserView deprecation, platform naming, Bun workspaces, and local release artifacts.
  • skills/electron-wrapper/references/project-setup.md
    • Added documentation for setting up an Electron subproject alongside a Bun web app, detailing directory structure, package.json configuration, TypeScript configs, electron-builder.yml, entitlements, and parent project changes.
  • skills/electron-wrapper/references/web-adaptation.md
    • Added documentation on adapting a web app to run inside Electron, covering detection utilities, type declarations, CSS drag regions, storage path adaptation, static asset serving, auto-update UI, and environment-based feature gating.
  • skills/electron-wrapper/skill.md
    • Added a new skill for wrapping Bun web apps into Electron desktop apps, describing its architecture, project setup, main process, web app adaptation, build/distribution, release process, pitfalls, dev workflow, and customization checklist.
  • skills/favicon/SKILL.md
    • Added a new skill for generating favicons from a source image and updating HTML, including prerequisites, validation, project type detection, app name determination, file generation, manifest creation, HTML updates, summary, and error handling.
  • skills/find-skills/SKILL.md
    • Added a new skill to help users discover and install agent skills, explaining when to use it, the Skills CLI, search steps, presenting options, offering installation, common categories, tips, and handling no results.
  • skills/fix-sentry-issues/SKILL.md
    • Added a new skill for fixing Sentry issues, emphasizing root-cause analysis, anti-patterns, valid log level changes, phases for discovery, triage, investigation, and fixing, a per-issue checklist, and practical links.
  • skills/knip/SKILL.md
    • Added a new skill for using Knip to find and remove unused code, dependencies, and exports, detailing setup, workflow, configuration best practices, production mode, cleanup confidence levels, auto-fix, error handling, and common commands.
  • skills/rams/SKILL.md
    • Added a new skill for running accessibility and visual design reviews on components, outlining checks for WCAG compliance, visual design aspects, output format, and guidelines.
  • skills/react-doctor/SKILL.md
    • Added a new skill for diagnosing and fixing React codebase health issues, covering usage, workflow, rules (security, state, architecture, performance, correctness, Next.js, bundle size, server, accessibility, dead code), and scoring.
  • skills/reclaude/SKILL.md
    • Added a new skill for refactoring CLAUDE.md files to follow progressive disclosure principles, including steps for checking length, integrating workflow, ensuring verification, finding contradictions, identifying global skill candidates, essential content, grouping content, flagging for deletion, target template, and what to keep/remove.
  • skills/sentry/SKILL.md
    • Added a new skill for Sentry error monitoring and performance tracing patterns in Next.js, covering exception catching, performance tracing, configuration, and structured logging.
  • skills/simplify/SKILL.md
    • Added a new skill for simplifying and refining recently modified code, focusing on preserving functionality, applying project standards, enhancing clarity, maintaining balance, and focusing scope.
  • skills/skill-creator/LICENSE.txt
    • Added the Apache License 2.0 for the skill-creator skill.
  • skills/skill-creator/SKILL.md
    • Added a new skill providing guidance for creating effective skills, detailing what skills provide, core principles (conciseness, degrees of freedom), anatomy of a skill (SKILL.md, bundled resources), progressive disclosure, and the skill creation process.
  • skills/skill-creator/references/output-patterns.md
    • Added documentation for output patterns in skills, covering template and examples patterns for consistent, high-quality output.
  • skills/skill-creator/references/workflows.md
    • Added documentation for workflow patterns in skills, covering sequential and conditional workflows.
  • skills/skill-creator/scripts/init_skill.py
    • Added a Python script to initialize a new skill directory from a template.
  • skills/skill-creator/scripts/package_skill.py
    • Added a Python script to package a skill folder into a distributable .skill file.
  • skills/skill-creator/scripts/quick_validate.py
    • Added a Python script for quick validation of skill metadata.
  • skills/tdd/SKILL.md
    • Added a new skill for Test-Driven Development (TDD), outlining its philosophy, anti-patterns, workflow (planning, tracer bullet, incremental loop, refactor), and a per-cycle checklist.
  • skills/tdd/deep-modules.md
    • Added documentation on the concept of 'Deep Modules' for interface design.
  • skills/tdd/interface-design.md
    • Added documentation on interface design for testability.
  • skills/tdd/mocking.md
    • Added documentation on when and how to use mocking in tests.
  • skills/tdd/refactoring.md
    • Added documentation on candidates for refactoring after a TDD cycle.
  • skills/tdd/tests.md
    • Added documentation distinguishing good and bad tests, focusing on integration-style vs. implementation-detail tests.
  • skills/workflow/SKILL.md
    • Added a new skill for workflow orchestration in complex coding tasks, emphasizing plan mode, subagent strategy, self-improvement, verification, elegance, autonomous bug fixing, task management, and core principles.
  • statusline.sh
    • Added a new bash script for generating a custom status line showing model name, current directory, context window usage, and git status.
  • sync.sh
    • Added a new bash script for managing agent configurations, including showing status, adding/removing items, pulling/pushing changes, undoing backups, and validating skills.
  • tests/install.bats
    • Added Bats tests for install.sh, covering basic installation, dry-run, conflict detection, backups, help, and idempotency.
  • tests/sync.bats
    • Added Bats tests for sync.sh, covering status display, adding/removing skills/agents/rules, backups, undo functionality, and dry-run.
  • tests/validation.bats
    • Added Bats tests for skill validation, covering valid/invalid skills, missing/empty frontmatter, missing name/description, checking local/repo skills, and validation on add.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/test.yml
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: aa5443ef46

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@@ -0,0 +1,198 @@
---

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Rename electron-wrapper skill file to SKILL.md

sync.sh validate only accepts skills that contain SKILL.md, and this directory is the only one added with a lowercase skill.md; on a clean checkout ./sync.sh validate fails with “Missing SKILL.md,” which also breaks the CI workflow step in .github/workflows/test.yml that runs validation. This makes the repository fail its own required validation path until the filename matches the expected convention.

Useful? React with 👍 / 👎.

Comment thread sync.sh
Comment on lines +569 to +573
for item in "$backup_root"/*; do
[ -e "$item" ] || continue
local item_name=$(basename "$item")
local root_name=$(basename "$backup_root")
local dest="$HOME/$root_name/$item_name"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Restore nested symlink entries during undo

undo_last only iterates direct children of $backup_path/.claude and $backup_path/.codex, but symlink backups are stored deeper (for example .claude/skills/<name>.symlink), so those entries are never handled by the symlink branch and end up copied as plain *.symlink files instead of real links. In practice, undoing operations like remove skill does not restore the original symlinks and leaves broken local state.

Useful? React with 👍 / 👎.

Comment thread sync.sh
Comment on lines +582 to +584
elif [ -d "$item" ]; then
rm -rf "$dest"
cp -r "$item" "$dest"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Avoid deleting entire local directories on undo

When a backed-up item is a directory, undo does rm -rf "$dest" and then copies the backup directory wholesale, which wipes unrelated local content under that directory that was never part of the operation. For example, undoing a backup that only contains one skill under .claude/skills removes other local skills before restore, causing unintended data loss.

Useful? React with 👍 / 👎.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a comprehensive baseline for agent configuration, including installation and synchronization scripts, a full test suite using Bats, and a wide array of skills and documentation. The overall quality of the scripts and tests is high, demonstrating robust and thoughtful implementation. My feedback focuses on minor improvements in documentation clarity, fixing typos, and enhancing the robustness of some Python helper scripts by suggesting the use of argparse for more flexible command-line argument handling.

Comment on lines +237 to +252
```bash
agent-browser open example.com --headed # Show browser window
agent-browser console # View console messages
agent-browser errors # View page errors
agent-browser record start ./debug.webm # Record from current page
agent-browser record stop # Save recording
agent-browser open example.com --headed # Show browser window
agent-browser --cdp 9222 snapshot # Connect via CDP
agent-browser console # View console messages
agent-browser console --clear # Clear console
agent-browser errors # View page errors
agent-browser errors --clear # Clear errors
agent-browser highlight @e1 # Highlight element
agent-browser trace start # Start recording trace
agent-browser trace stop trace.zip # Stop and save trace
``` No newline at end of file

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The Debugging section contains several duplicated commands, which appears to be a copy-paste error. For clarity and to avoid confusion, I recommend removing the redundant entries.

Specifically, the following commands are duplicated:

  • agent-browser open example.com --headed (lines 238 and 243)
  • agent-browser console (lines 239 and 245)
  • agent-browser errors (lines 240 and 247)
Suggested change
```bash
agent-browser open example.com --headed # Show browser window
agent-browser console # View console messages
agent-browser errors # View page errors
agent-browser record start ./debug.webm # Record from current page
agent-browser record stop # Save recording
agent-browser open example.com --headed # Show browser window
agent-browser --cdp 9222 snapshot # Connect via CDP
agent-browser console # View console messages
agent-browser console --clear # Clear console
agent-browser errors # View page errors
agent-browser errors --clear # Clear errors
agent-browser highlight @e1 # Highlight element
agent-browser trace start # Start recording trace
agent-browser trace stop trace.zip # Stop and save trace
```
agent-browser open example.com --headed # Show browser window
agent-browser --cdp 9222 snapshot # Connect via CDP
agent-browser console # View console messages
agent-browser console --clear # Clear console
agent-browser errors # View page errors
agent-browser errors --clear # Clear errors
agent-browser highlight @e1 # Highlight element
agent-browser record start ./debug.webm # Record from current page
agent-browser record stop # Save recording
agent-browser trace start # Start recording trace
agent-browser trace stop trace.zip # Stop and save trace

Comment on lines +350 to +351
"build:main": "esbuild src/main/index.ts --bundle --platform=node --format=esm --outfile=dist/main/main/index.js --external:electron --banner:js=\"import { createRequire } from 'module'; var require = createRequire(import.meta.url);\"",
"build:preload": "esbuild src/preload/index.ts --bundle --platform=node --format=cjs --outfile=dist/preload/preload/index.js --external:electron"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The outfile paths in the build:main and build:preload scripts appear to have duplicated directory names (dist/main/main/index.js and dist/preload/preload/index.js). This seems inconsistent with the configuration in project-setup.md, which points to dist/main/index.js and dist/preload/index.js respectively. This could cause issues if a user copies these commands directly.

Suggested change
"build:main": "esbuild src/main/index.ts --bundle --platform=node --format=esm --outfile=dist/main/main/index.js --external:electron --banner:js=\"import { createRequire } from 'module'; var require = createRequire(import.meta.url);\"",
"build:preload": "esbuild src/preload/index.ts --bundle --platform=node --format=cjs --outfile=dist/preload/preload/index.js --external:electron"
"build:main": "esbuild src/main/index.ts --bundle --platform=node --format=esm --outfile=dist/main/index.js --external:electron --banner:js=\"import { createRequire } from 'module'; var require = createRequire(import.meta.url);\"",
"build:preload": "esbuild src/preload/index.ts --bundle --platform=node --format=cjs --outfile=dist/preload/index.js --external:electron"

- CHANGELOG.md
- etc.

The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxilary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is a typo in the word "auxiliary".

Suggested change
The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxilary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.
The skill should only contain the information needed for an AI agent to do the job at hand. It should not contain auxiliary context about the process that went into creating it, setup and testing procedures, user-facing documentation, etc. Creating additional documentation files just adds clutter and confusion.

Comment on lines +274 to +285
if len(sys.argv) < 4 or sys.argv[2] != '--path':
print("Usage: init_skill.py <skill-name> --path <path>")
print("\nSkill name requirements:")
print(" - Hyphen-case identifier (e.g., 'data-analyzer')")
print(" - Lowercase letters, digits, and hyphens only")
print(" - Max 40 characters")
print(" - Must match directory name exactly")
print("\nExamples:")
print(" init_skill.py my-new-skill --path skills/public")
print(" init_skill.py my-api-helper --path skills/private")
print(" init_skill.py custom-skill --path /custom/location")
sys.exit(1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The command-line argument parsing is brittle as it relies on a fixed argument order. Using Python's argparse module would make the script more robust and user-friendly. It would allow for flexible argument ordering (e.g., init_skill.py --path <path> <skill-name>) and automatically provide a helpful --help message.

Comment on lines +86 to +91
if len(sys.argv) < 2:
print("Usage: python utils/package_skill.py <path/to/skill-folder> [output-directory]")
print("\nExample:")
print(" python utils/package_skill.py skills/public/my-skill")
print(" python utils/package_skill.py skills/public/my-skill ./dist")
sys.exit(1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The argument parsing in this script is dependent on a specific order and doesn't use named arguments for clarity. I recommend using the argparse module to make it more robust, especially for handling the optional output-directory. This would also provide a standard --help message for users.

Comment on lines +89 to +91
if len(sys.argv) != 2:
print("Usage: python quick_validate.py <skill_directory>")
sys.exit(1)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The argument parsing is very basic. While it works for a single argument, using the argparse module is a best practice that would make the script more maintainable and provide a standard --help output for better usability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant