Who it is forA team lead who has a house rule, such as keeping secrets out of logs, that generic linters do not check.
The problemBuilt-in checks do not cover every team standard, and a written rule is easy to forget in review.
The outcomeA committed rule in Perch.yaml that Perch applies to matching files on every scan.
What you need first
- Node.js with npm, to install the @lakeday/perch package
- A Perch Cloud account, created by running perch login (the first $5 is free)
- A project folder with source code to scan
Steps
- Open
perch.yamlin the project root, or create it - Add a rule with
name,where,each, andensurefields, as shown in the README example - Run
perch scanto apply the new rule - Run
perch issuesto review what the rule found - Commit
perch.yamlso the rule applies to the team
Prompt for your agent
In the perch repo at <project path>, add a rule named private-logs to perch.yaml with where set to src/**/*.ts, each set to method, and ensure set to 'Keep passwords and access tokens out of logs.' Run `perch scan`. Verify that the scan output includes findings from this rule.
Caveat. Rule syntax beyond the README example (such as `sees` and `min`) is documented elsewhere, so this example covers only the basic fields.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for lakeday-org/perch and "Write a custom rule for your own code standard"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer