Skip to content

WillNigri/Agentic-Tool-Optimization / .claude/skills/browse

browse

Flagged

Fast headless browser for QA testing and site dogfooding. Navigate any URL, interact with elements, verify page state, diff before/after actions, take annotated screenshots, check responsive layouts, test forms and uploads, handle dialogs, and assert element states. ~100ms per command. Use when you need to test a feature, verify a deployment, dogfood a user flow, or file a bug with evidence. Use when asked to "open in browser", "test the site", "take a screenshot", or "dogfood this".

test/fixtures/qa-eval-spa.html

View on GitHub
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>QA Eval — SPA Store</title>
  <style>
    body { font-family: sans-serif; padding: 20px; margin: 0; }
    nav { background: #333; padding: 10px 20px; }
    nav a { color: white; margin-right: 15px; text-decoration: none; cursor: pointer; }
    nav a:hover { text-decoration: underline; }
    #app { padding: 20px; }
    .product { border: 1px solid #ddd; padding: 10px; margin: 10px 0; border-radius: 4px; }
    .product button { padding: 6px 12px; background: #0066cc; color: white; border: none; cursor: pointer; }
    .cart-count { background: #cc0000; color: white; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
    .error { color: red; padding: 10px; }
    .loading { color: #666; padding: 10px; }
  </style>
</head>
<body>
  <nav>
    <a href="#/home">Home</a>
    <a href="#/prodcts">Products</a>  <!-- BUG 1: broken route — typo "prodcts" instead of "products" -->
    <a href="#/contact">Contact</a>
    <span class="cart-count" id="cart-count">0</span>
  </nav>

  <div id="app">
    <p>Welcome to SPA Store. Use the navigation above.</p>
  </div>

  <script>
    let cartCount = 0;

    // BUG 2: cart count never resets on route change — stale state
    function addToCart() {
      cartCount++;
      document.getElementById('cart-count').textContent = cartCount;
    }

    function renderHome() {
      document.getElementById('app').innerHTML = `
        <h1>Welcome to SPA Store</h1>
        <p>Browse our products using the navigation above.</p>
      `;
    }

    function renderProducts() {
      document.getElementById('app').innerHTML = '<p class="loading">Loading products...</p>';

      // BUG 3: async race — shows data briefly, then shows error
      setTimeout(() => {
        document.getElementById('app').innerHTML = `
          <h1>Products</h1>
          <div class="product">
            <h3>Widget A</h3>
            <p>$29.99</p>
            <button onclick="addToCart()">Add to Cart</button>
          </div>
          <div class="product">
            <h3>Widget B</h3>
            <p>$49.99</p>
            <button onclick="addToCart()">Add to Cart</button>
          </div>
        `;
      }, 300);

      setTimeout(() => {
        document.getElementById('app').innerHTML = '<p class="error">Error: Failed to fetch products from API</p>';
      }, 1000);
    }

    function renderContact() {
      document.getElementById('app').innerHTML = `
        <h1>Contact Us</h1>
        <p>Email: support@spastore.example.com</p>
      `;
    }

    // BUG 4: nav links have no aria-current attribute on active route
    function router() {
      const hash = window.location.hash || '#/home';
      switch (hash) {
        case '#/home': renderHome(); break;
        case '#/products': renderProducts(); break;
        case '#/contact': renderContact(); break;
        default:
          document.getElementById('app').innerHTML = '<p>Page not found</p>';
      }

      // BUG 5: console.warn on every route change — simulates listener leak
      console.warn('Possible memory leak detected: 11 event listeners added to window');
    }

    window.addEventListener('hashchange', router);
    router();
  </script>
</body>
</html>
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 321kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 321kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 321kUpdated Claude CodeCodexVerifiedInstall
skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.Stars: 197kUpdated Claude CodeCodexVerifiedInstall