{"uid":"cap_ZcGfkuvD6eLma9Fl43q9k","slug":"writerslogic-path-rules-evaluator-0cbc0639","name":"WritersLogic Path Rules Evaluator","description":"Pay-per-call agents settled in USDC on Base via x402. Every response carries a signed provenance envelope.","url":"https://agents.writerslogic.com/api/v1/path-rules?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"kind":{"enum":["gitignore","codeowners","glob"],"type":"string"},"paths":{"type":"array","items":{"type":"object","required":["path"],"properties":{"path":{"type":"string","maxLength":300,"description":"Repository-relative path with / separators, at most 12 segments."},"isDir":{"type":"boolean","description":"gitignore/glob: the path is a directory (a trailing / also says so)."},"expect":{"enum":["match","no-match"],"type":"string","description":"match = ignored (gitignore), owned (codeowners, default), matched (glob)."}},"additionalProperties":false},"maxItems":25,"minItems":1},"rules":{"type":"string","maxLength":40000,"description":"File text, at most 300 pattern lines."}}},"responseSchema":{"type":"json"},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_8cvMnjkTv98zkRDBJxUGr","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Evaluates up to 25 file paths against .gitignore, CODEOWNERS, or glob patterns and reports per-path match status, winning rule, and reason","exampleAgentPrompt":"Check these 5 paths — src/app/index.ts, dist/bundle.js, .env, node_modules/lodash/index.js, and docs/README.md — against this .gitignore text and tell me which ones would be ignored, which rule matched each one, and why.","exampleUseCases":[{"title":"Debug gitignore ignoring source files","prompt":"I think my .gitignore is accidentally ignoring some TypeScript source files — can you check these paths: src/index.ts, src/utils/helpers.ts, and src/generated/schema.ts against my gitignore text and tell me which ones are matched, which rule is winning, and whether it's being blocked by a negation or parent directory exclusion?"},{"title":"Validate CODEOWNERS coverage for PR files","prompt":"I have a pull request touching these files: packages/auth/login.ts, packages/ui/Button.tsx, and infra/terraform/main.tf — can you evaluate them against my CODEOWNERS file and tell me who owns each one, which rule matched, and flag any CODEOWNERS lines GitHub would skip?"},{"title":"Test glob patterns for build pipeline","prompt":"I'm setting up a file filter for my CI pipeline using glob patterns — can you test these paths: build/output/app.js, src/main.go, test/app_test.go, and README.md against the pattern list I'll provide, and tell me which ones match and which rule won for each?"}],"resultDescription":"For each submitted path: whether it matched (ignored/owned/matched), the line number and pattern text of the winning rule, the reason it matched or did not (last-match-wins logic, directory-only rules, negation, re-include blocked by excluded parent, CODEOWNERS owner list). For CODEOWNERS mode: flags lines GitHub would skip due to negation, character ranges, or bad owners. If per-path expectations were provided, a pass/fail result is included for each path.","failureModes":["More than 25 paths submitted — request rejected","Rules text exceeds 40,000 characters or more than 300 pattern lines — request rejected","Invalid kind enum value — request rejected","Path exceeds 300 characters or 12 segments — path rejected","Nested .gitignore files or info/exclude not evaluated — only root-level file honored","GitHub team resolution not performed for CODEOWNERS — raw owner strings returned","Branch-specific CODEOWNERS rules not evaluated"],"whenToPreferThis":"Use this endpoint when you need deterministic, rule-traceable evaluation of file paths against .gitignore, CODEOWNERS, or glob patterns — especially when you need to know not just whether a path matched but exactly which rule won and why. Prefer this over running git check-ignore locally when operating in an agent context without a local git repo, or when you need to validate expectations (pass/fail assertions) for a batch of paths programmatically.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-19T12:35:36.646Z","isFirstParty":false,"canonicalSlug":"writerslogic-path-rules-evaluator-0cbc0639"}