📱

Get Our Mobile App

Take your business learning on the go!

Download on the App StoreGet it on Google Play

I Built a $500K AI Lawyer With Claude Code — It's INSANE

Zubair Trabzada | AI Workshop17:52

Transcription

Be honest. When was the last time you actually read a contract before you signed it? Most people don't, and that's exactly what the other side is counting on. 82% of small business owners and freelancers sign contracts without fully reading them. And one bad [music] clause can cost you everything. Your IP, revenue, thousands in penalties. I almost signed a contract a few months ago that would have let the client keep all my work and pay me nothing. One clause buried on page 7. That's why I built the AI legal [music] assisting using clot code. It reads every line of any contract in 60 seconds, [music] flags every risky clause, translates legal ease into plain English, and even writes your counter proposal, all for free. [music] And by the end of this video, you'll have this exact tool installed on your computer and know when and how to use it properly.

All right, let's get started. Now, before we jump in, just a quick disclaimer so I'm not deceiving anybody. This is not legal advice. Obviously, this is not going to replace an actual lawyer. So, if you're signing a million-doll deal or a $100,000 deal, right, you need to hire an attorney. But let's be real, if you're a freelancer or an agency owner signing $10,000 to $15,000 contract, you're not hiring a lawyer every time to look at every single thing, right? And nobody does that. The alternative right now is what you put your contract that you're getting into Chad GPT and saying, "Hey, does this look okay?" Right? Which is barely better than reading it at all. This is the middle ground. This is 10 times better than Chachi BT because it's running five specialized agents that know exactly what to look for in a contract.

So, let me quickly show you what I mean by running this on a sample contract. All right, so I have this freelancer service agreement right here. Again, this is a sample contract, but it's actually majority of it's based on a real one that I've seen recently. So, this is from a company called Nexus Digital Solutions. Uh they want to hire a freelancer for 15,000 website redesign. Again, looks pretty standard. professional formatting, milestone payment, signature blocks. Most people just skim this and sign this. Let's see what the AI finds. Right now in my VS Code, I'm running cloud code here. Again, I'm going to show you how to install this if you're not familiar with this. So, I'm going to run the /legal review and sample-contract.pdf. And by the way, the sample-contract PDF is the one that I showed you earlier. So, I'm going to press enter.

So, what's going to happen? This is going to run five agents in parallel. One is going to be pulling apart every clause. One is scoring each one for risk. One is checking compliance. One is mapping every obligation and deadline. And one is building specific recommendation for what to charge. So, I'm going to go ahead and fast forward this and I'm going to show you what this produces. All right. So, it went through and finished everything as you can see right here. And it also generated this nice little uh review PDF file. So, this is the result. All right. So, let me zoom in here so that way you can see what's going on. All right. So, first of all, just on top, it gives you a great contract safety score, 22 out of 100, grade F, it says dangerous, which is not good. So, let's see why. It also uh is going to generate the executive summary for you, the contract details, what type of contract this is, the parties that are involved, the effective date, the governing law, and here's the risk dashboard, right? They have 16 uh high-risk items, six medium, and five low. So now it also show you exactly >> [snorts] >> uh the clauses that are high risk, medium risk and roseless. First of all, clause by clause analysis. What this is going to do is show you exactly the high risk and why, right? It's going to say, hey, this contractor, what it's it's saying right now is contractor must perform unlimited revision cycles at no additional charge. Why it's risky? Full satisfaction is subjective, potentially never achieve achievable standard with no objective criteria. Right? So, it says why you could lose months or years of uh labor and fixed $15,000 fee. It gives you a recommendated change. It says limit to three rounds of revision per deliverable. Right? And by the way, this is just a sample contract for freelance uh work for a website. You could imagine putting any kind of work like tenants agreement or any kind of other service is going to create based on that particular industry. So, the second hier says unilateral scope modification clauses S1.2 and S11.2. It says client can modify the project specification at any time and is sole discretion. Says why it's risky. This allows unlimited scope creep with no price adjustment. It says what you could lose recommended change require mutual written agreement to scope changes. Same thing. It's going to keep going and give you all these high-risk items. Again, if you were to just put this in chat GPT, it might give you a few little pointers, but not this much detail, right? So high risk, all of this is giving you and on top of that, it gives you recommendation on what to do. The medium and low risk you can potentially ignore, but this high risk are the ones that you want to make sure that you are paying attention to and then utilizing before signing the contract. And at the bottom, it gives you compliance flags and then negot negotiation priorities. Says tier one, walk away if not fixed. It gives you the exact clauses and what to fix in order for you to move forward. And it's saying obviously these are all recommendations, right? But it's saying that this tier one, if this is not fixed, it's not a good idea for you to move forward with contract. Again, this is something that a lawyer would charge you thousands of dollars for, right? Of course, if it's a expensive contract, like I mentioned before, you want to hire an attorney, but the middle ground is this, where this gives you those details where now you can negotiate back and forth with the client to make sure you're not putting yourself in some kind of a danger.

By the way, all of this is happening because of claw code skills. And this is what I built. And by the way, this is an open source. I'm going to put the link in the description. You have full access to this. Uh, so this is called AI law. As you can see, I I have this nice little readme file that shows you all of the details about what this set of skills does in cloud code, including all of the skills that are inside the uh skills folder right here. So the one that we just ran, this is going to be that legal review that we ran. This is the flagship command. So if I go inside the skills.mmd file, you can see exactly it says fl flagship orchestrator. The phase one like we just s just we saw it ingest the contract. The phase two is where it launches five parallel agents. These are the different agents that I talked about and then it gives you all of the different details. This is just, by the way, one skill. All of these different skills that I'm going to talk about throughout the video is going to be doing something specific. So, if you don't want to run an entire uh review for this particular contract, if you just want to, for example, know, hey, I just want a NDA skill, I just want a missing skill, meaning the legal missing, what are the important things that are missing from this particular contract, right? uh privacy uh if you want to compare two different um contracts all of these different skills are there specifically designed for these purposes. So a total of 14 skills five sub agents that this tool consists which is why this is a AI legal team not just one little command.

So now I'm going to go ahead and show you how to install this completely for free. First thing you need to do is you want to make sure you're installing Visual Studio Code. So Visual Studio Code all you have to do is go to Google um code.visisualstudio.com visualstudio.com. You can use Google's anti-gravity, but uh I like VS Code because it's very simple and very easy to interact with. You're going to click on download. Once you download the file, the user interface is going to look something like this. So, I'm going to go ahead and click on this to open a brand new clot code. Now, if you don't have once you come to your Visual Studio Code, if you don't have cloud code installed yet, what you're going to do is you're going to click on the extensions right here, and you're going to search for cloud code. You're going to go ahead and install this. And once you install this, this little uh clot code sign is going to show up. So when you click on it, it's going to open a new instance of cloud code. Very very simple. Of course, for authentication, you want to make sure that you have a paid cla code. Otherwise, this won't work obviously. But you know, clot code is definitely worth the investment. So once you have your cloud code installed, uh what you're going to do is you're going to create a brand new folder. So that way if it's your first time, obviously interact with this. You're going to click on brand this uh new folder and you're going to leave it blank and upload a sample contract or whatever contract you're looking at inside that folder. And that's all you need.

Now, in order to install all of these skills, so all you have to do is go to the top here, click on this little terminal. Let me uh clear this so that way you know exactly what this looks like. You're going to head over to the link in the description and it's going to bring you right here. Hold on, let me go back to the main page. It's going to bring you right here. Again, you have full access to this. It's completely free. You're going to come back to come down to the bottom and this quick start. You're going to copy this code. Don't worry, you don't have to do any coding at all. And you're going to go back to your Visual Studio Code. And by the way, I have a bunch of other uh free tools here for you guys. This GEO SEO cloud, for example, got 4,000 stars, which is incredible. And a bunch of other like a marketing cloud, AI sales team, and this AI legal team is in the uh you know, the the new one that I just added. And of course, you can monetize all of this. And if you want to learn how to monetize this, check out the link description for my community. This is where I teach you how to monetize these cloud code skills that we're building like these AI sales teams, market and sales teams, GEO, because we recently launched our own go agency. So, if you're interested in learning how to monetize clot code and sell this to actual businesses, check out the link in the description for the community. But anyway, so once you copy your uh this curl command, so we go back to this right here. Once you copy this, you're going to go back to your uh Visual Studio Code and all you have to do is paste this. Press enter. What this is going to do is going to install everything. As you can see right here, it says uh cloning from GitHub. It installed all the skills. It installed the agents and everything else you need. And it says installation complete. And now you have these command references available for you. Right? So then all you have to do is I'm just going to click on the uh close there. Come to the bottom here. And if I press the slash command and look for legal, now you have all these slash commands that are available. And for those of you who are not familiar what slash commands are, they're skills. Skills are basically a way to give clot code expertise in a particular domain. In our case, where those 14 skills that are here, these different slash commands, right? It's based on the instructions that are inside that skills.md file that I showed earlier. Uh, that gives cla instruction on what to do.

So now let's go ahead and run that legal review command on that sample contract. And again, you could do the same thing for yours. So I'm just going to select the legal review. I'm just pressing tab. And here's where you need to enter the name of that particular file. Right? So in my case, I have the sample-contract.pdf. So this is inside the same folder. Uh, now if yours is whatever file you're running this on if it's located in some other location let's say it's located on your desktop or in your documents all you would have to do is just put the path of that file. So for instance you would do slash desktop rightestop slashdocuments and the name of that file. So wherever it's located just put the path. But to be honest the easiest thing is to just copy and paste and put it in the same folder so that way you don't have to uh do anything else. So, I'm just going to put the name of that file here, which is sample contract.pdf, right? And I'm going to press enter. And as soon as I press enter, now what's going to happen is this is going to uh run everything according to the instructions that's inside this legal review skills.mmd files. Right? So, as you can see, it says uh uh read sample contract.pdf contract ingested successfully. This is the independent contract of service agreement between Nexus digital blah blah blah and now launching all five analysis sub aents in parallel. So what this is going to do is this is going to go ahead and according to the skills.md file. So if I go to my skills.mmd file go to legal review and click on skills.mmd. So the first phase which is already doing right it's going to ingest the contract and the second phase is launching those five parallel agents. So what this is doing if I go back now. So it says now there you go. So the first agent is launched agent clause analysis sub agent. Now the next phase the next agent is going to be the legal risks agent. The third one is going to be legal compliance legal terms legal recommendations. So all of this is happening because this skills.md files is instructing claude code to do and follow these instructions and therefore it's going to go ahead. There you go. So the second agent is risk assessment. The third agent is in compliance. so on and so forth. So I'm going to fast forward this so that way you can see exactly what the end result looks like.

All right, perfect. So all uh all all sub agents finished right at the end. As you can see right here, it says now I have five sub aent results. Let me compile the final report. So it's going to write the contract review nexus blah blah blah MD which is a markdown file. So if I click on this, it's going to open up. So it basically created this entire instruction files, right? This is the entire in or the entire result of that legal review. It gives you the executive summary. It gives you kind of the high-risisk clauses. So it says unlimited division, right? The clause 1.3, clause 2.4 and so on and so forth. So it's going to give you all of this. Obviously, this is hard to read. So what you want to do is run another uh skill, which again, if I go back here, there's another skill here called legal report- PDF. So if I click on this, it's going to click on skill.mmd file. This is basically instructing cloud code that you're a PDF report generator for legal report PDF. You collect data from the most recent contract review analysis and generate a professional branded PDF document using Python and report. So, it's going to go ahead and Cloud Code is going to follow these instructions, which basically tells Cloud Code, hey, you need to generate um a PDF that gives you the contract safety score, the executive summary, the risk dashboards, clause by clause analysis, missing protection checklist, obligation timeline, compliance flags, right? All of this is because this is what's what we're instructing cloud code to do inside the skills. MD file. So then all you have to do is here. If I go here, if I just do now slash legal and report PDF and press enter. Same thing. Now this is going to generate that entire PDF file. I already did this. I'm just going to skip this. And what it's going to look like is something like this. And that's exactly what we looked at at the beginning of this uh video, right at the beginning of the demo. So it generates the contract review report with the contract safety score and all of the other details. So again that's one of the commands that we ran or one of the slash commands.

Now you can go ahead and check out other ones as well. Like for instance if you want to run a negotiate uh skill right so what this is going to do if I click on this click on the skills.mmd file. So what this is going to do it says counterproposal generator. You're an AI legal negotiation strategy. You identify every unfavorable clause in a contract and generate a specific actionable counter proposal with replacement language, persuasive talking points, and professional email template the user can send to request the change. So, this is going to basically generate a counter proposal for this contract that the client sent. And it's going to basically say, hey, uh, step one is going to be reading the contract. Step two is identify on unfailable risky clauses and generate counter proposals. By the way, these step-by-step instructions. So, this is exactly what clot code is going to follow whenever you enter that slash command legal negotiate, right? Because this is clearly telling cloud code that you should do this. Same thing, you can check out the rest of mean obviously you don't have to run this legal review on a contract. Let's say you're looking for something specific. You're like, hey, I want to run this legal missing, right? Because this is what's going to uh find out all of the missing protections, right? So it says you are a legal AI legal protection analyst. You identify gaps in contract clauses and protection that should be present pres present based on the contract type and industry but are missing. Right? So that's another very useful one. If you want to compare two different contracts, you can do sideby-side comparison. Right? You would basically have two files next to each other and when you run this slash command slash command, it's going to read both of the contracts. is going to do structural comparison, clause by clause comparison and flag dangerous pattern. So all of these different skills are available for you. All you have to do is just type slash, right? Because obviously after you install this AI legal cloud code or this AI sales or this AI legal uh analysis team, you will have access to all of these different skills that you can run on any contract.

Again, I've put a little uh box here that that why this matters. Average legal review costs $300 to $500 an hour. I'm sure if you're in the US, you know how expensive lawyers are. And the basic contract review, what this generates is sometimes almost $2,000 that that a lawyer would would would charge you. And again, as I mentioned before, I want to make sure that you understand this is not replacing a lawyer, but this is basically that middle ground for you. But of course, I'll you know, as recommended, always hire a lawyer, uh, if you want to make sure that you're finalizing in uh, if you're dealing with something legal, of course. But take a look at this again and if you're interested, like I mentioned before on learning how to monetize these different AI sales teams and uh sell these to local businesses or any kind of a business or if you are interested in uh launching your AI agency, check out the community. We have an entire AI agency 5week day-to-day accountability program where we show you exactly what to do on a day-to-day basis for you to launch your AI agency and start monetizing AI. We also have VoiceAI with Retail AI and NAN if you're interested in learning these incredible tools. But anyways, hopefully you like the video. If you like, please make sure you like and subscribe because I've got a lot more coming that you don't want to miss. Thanks for watching and I'll see you on the next one.